diff options
author | Matthias Beyer <mail@beyermatthias.de> | 2019-11-23 20:22:31 +0100 |
---|---|---|
committer | Matthias Beyer <mail@beyermatthias.de> | 2019-12-22 19:02:21 +0100 |
commit | 0464bfba53255814aadc35d9927c8d0fff2eb00d (patch) | |
tree | 1f2f6b26bd37ee639603ac5e3412d05a88b412aa /bin/core/imag-store/src/create.rs | |
parent | 84bb05035b51b05734eef44657cffd1fdb2950db (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/create.rs')
-rw-r--r-- | bin/core/imag-store/src/create.rs | 3 |
1 files changed, 1 insertions, 2 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<()> { |