diff options
Diffstat (limited to 'bin/core/imag-store/src')
-rw-r--r-- | bin/core/imag-store/src/create.rs | 3 | ||||
-rw-r--r-- | bin/core/imag-store/src/get.rs | 3 | ||||
-rw-r--r-- | bin/core/imag-store/src/retrieve.rs | 3 | ||||
-rw-r--r-- | bin/core/imag-store/src/update.rs | 3 |
4 files changed, 4 insertions, 8 deletions
diff --git a/bin/core/imag-store/src/create.rs b/bin/core/imag-store/src/create.rs index a8989a28..3bb5681e 100644 --- a/bin/core/imag-store/src/create.rs +++ b/bin/core/imag-store/src/create.rs @@ -26,7 +26,6 @@ use std::io::Read; use clap::ArgMatches; use toml::Value; use failure::Fallible as Result; -use failure::Error; use failure::err_msg; use libimagrt::runtime::Runtime; @@ -59,7 +58,7 @@ pub fn create(rt: &Runtime) -> Result<()> { create_with_content_and_header(rt, &path, String::new(), Entry::default_header())?; } - rt.report_touched(&path).map_err(Error::from) + rt.report_touched(&path) } fn create_from_cli_spec(rt: &Runtime, matches: &ArgMatches, path: &StoreId) -> Result<()> { 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) }, } } diff --git a/bin/core/imag-store/src/retrieve.rs b/bin/core/imag-store/src/retrieve.rs index 7ae516d7..511c9348 100644 --- a/bin/core/imag-store/src/retrieve.rs +++ b/bin/core/imag-store/src/retrieve.rs @@ -21,7 +21,6 @@ use std::path::PathBuf; use std::io::Write; use failure::Fallible as Result; -use failure::Error; use clap::ArgMatches; use libimagstore::store::FileLockEntry; @@ -39,7 +38,7 @@ pub fn retrieve(rt: &Runtime) -> Result<()> { .retrieve(path.clone()) .and_then(|e| print_entry(rt, scmd, e))?; - rt.report_touched(&path).map_err(Error::from) + rt.report_touched(&path) } pub fn print_entry(rt: &Runtime, scmd: &ArgMatches, e: FileLockEntry) -> Result<()> { diff --git a/bin/core/imag-store/src/update.rs b/bin/core/imag-store/src/update.rs index 8f2479fd..c1e2eecc 100644 --- a/bin/core/imag-store/src/update.rs +++ b/bin/core/imag-store/src/update.rs @@ -21,7 +21,6 @@ use std::ops::DerefMut; use std::path::PathBuf; use failure::Fallible as Result; -use failure::Error; use libimagrt::runtime::Runtime; use libimagstore::storeid::StoreId; @@ -49,7 +48,7 @@ pub fn update(rt: &Runtime) -> Result<()> { debug!("New header set"); } - rt.report_touched(locked_e.get_location()).map_err(Error::from) + rt.report_touched(locked_e.get_location()) }) } |