summaryrefslogtreecommitdiffstats
path: root/bin/core/imag-tag/src/lib.rs
diff options
context:
space:
mode:
Diffstat (limited to 'bin/core/imag-tag/src/lib.rs')
-rw-r--r--bin/core/imag-tag/src/lib.rs9
1 files changed, 4 insertions, 5 deletions
diff --git a/bin/core/imag-tag/src/lib.rs b/bin/core/imag-tag/src/lib.rs
index 874ebf5a..3e931609 100644
--- a/bin/core/imag-tag/src/lib.rs
+++ b/bin/core/imag-tag/src/lib.rs
@@ -62,7 +62,6 @@ extern crate env_logger;
use std::io::Write;
use failure::Fallible as Result;
-use failure::Error;
use failure::err_msg;
use resiter::AndThen;
use resiter::Map;
@@ -142,7 +141,7 @@ impl ImagApplication for ImagTag {
}
Ok(e)
})
- .and_then_ok(|e| rt.report_touched(e.get_location()).map_err(Error::from))
+ .and_then_ok(|e| rt.report_touched(e.get_location()))
.collect::<Result<Vec<_>>>()
.map(|_| ())
},
@@ -181,7 +180,7 @@ impl ImagApplication for ImagTag {
}
Ok(e)
})
- .and_then_ok(|e| rt.report_touched(e.get_location()).map_err(Error::from))
+ .and_then_ok(|e| rt.report_touched(e.get_location()))
.collect::<Result<Vec<_>>>()
.map(|_| ())
},
@@ -251,7 +250,7 @@ fn alter(rt: &Runtime, path: StoreId, add: Option<Vec<Tag>>, rem: Option<Vec<Tag
},
}
- rt.report_touched(&path).map_err(Error::from)
+ rt.report_touched(&path)
}
fn list(path: StoreId, rt: &Runtime) -> Result<()> {
@@ -288,7 +287,7 @@ fn list(path: StoreId, rt: &Runtime) -> Result<()> {
writeln!(rt.stdout(), "{}", tags.join(", "))?;
}
- rt.report_touched(&path).map_err(Error::from)
+ rt.report_touched(&path)
}
/// Get the tags which should be added from the commandline