summaryrefslogtreecommitdiffstats
path: root/bin/core/imag-store/src/get.rs
diff options
context:
space:
mode:
authorMatthias Beyer <mail@beyermatthias.de>2019-11-23 20:22:31 +0100
committerMatthias Beyer <mail@beyermatthias.de>2019-12-22 19:02:21 +0100
commit0464bfba53255814aadc35d9927c8d0fff2eb00d (patch)
tree1f2f6b26bd37ee639603ac5e3412d05a88b412aa /bin/core/imag-store/src/get.rs
parent84bb05035b51b05734eef44657cffd1fdb2950db (diff)
Remove error conversion which is not necessary anymore.
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
Diffstat (limited to 'bin/core/imag-store/src/get.rs')
-rw-r--r--bin/core/imag-store/src/get.rs3
1 files changed, 1 insertions, 2 deletions
diff --git a/bin/core/imag-store/src/get.rs b/bin/core/imag-store/src/get.rs
index b47fabc3..aa060fd1 100644
--- a/bin/core/imag-store/src/get.rs
+++ b/bin/core/imag-store/src/get.rs
@@ -20,7 +20,6 @@
use std::path::PathBuf;
use failure::Fallible as Result;
-use failure::Error;
use failure::err_msg;
use libimagrt::runtime::Runtime;
@@ -40,7 +39,7 @@ pub fn get(rt: &Runtime) -> Result<()> {
None => Err(err_msg("No entry found")),
Some(entry) => {
print_entry(rt, scmd, entry)?;
- rt.report_touched(&path).map_err(Error::from)
+ rt.report_touched(&path)
},
}
}