summaryrefslogtreecommitdiffstats
path: root/bin/core/imag-ref/src/lib.rs
diff options
context:
space:
mode:
Diffstat (limited to 'bin/core/imag-ref/src/lib.rs')
-rw-r--r--bin/core/imag-ref/src/lib.rs4
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(())
}