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-ref/src/lib.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-ref/src/lib.rs')
-rw-r--r-- | bin/core/imag-ref/src/lib.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/bin/core/imag-ref/src/lib.rs b/bin/core/imag-ref/src/lib.rs index c5b5f982..c4b24db1 100644 --- a/bin/core/imag-ref/src/lib.rs +++ b/bin/core/imag-ref/src/lib.rs @@ -131,7 +131,7 @@ fn deref(rt: &Runtime) -> Result<()> { .ok_or_else(|| Error::from(::libimagerror::errors::ErrorMsg::UTF8Error)) .and_then(|s| writeln!(outlock, "{}", s).map_err(Error::from))?; - rt.report_touched(&id).map_err(Error::from) + rt.report_touched(&id) }, None => Err(format_err!("No entry for id '{}' found", id)) } @@ -193,7 +193,7 @@ fn list_dead(rt: &Runtime) -> Result<()> { unimplemented!() }?; - rt.report_touched(entry.get_location()).map_err(Error::from) + rt.report_touched(entry.get_location()) } else { Ok(()) } |