summaryrefslogtreecommitdiffstats
path: root/bin/core/imag-link/src/lib.rs
diff options
context:
space:
mode:
Diffstat (limited to 'bin/core/imag-link/src/lib.rs')
-rw-r--r--bin/core/imag-link/src/lib.rs11
1 files changed, 5 insertions, 6 deletions
diff --git a/bin/core/imag-link/src/lib.rs b/bin/core/imag-link/src/lib.rs
index bba51892..47d75c93 100644
--- a/bin/core/imag-link/src/lib.rs
+++ b/bin/core/imag-link/src/lib.rs
@@ -72,7 +72,6 @@ use libimagstore::storeid::StoreId;
use url::Url;
use failure::Fallible as Result;
-use failure::Error;
use clap::App;
mod ui;
@@ -179,7 +178,7 @@ fn link_from_to<'a, I>(rt: &'a Runtime, from: &'a str, to: I) -> Result<()>
info!("Ok: {} -> {}", from, entry);
}
- rt.report_touched(from_entry.get_location()).map_err(Error::from)
+ rt.report_touched(from_entry.get_location())
}
fn remove_linking(rt: &Runtime) -> Result<()> {
@@ -198,7 +197,7 @@ fn remove_linking(rt: &Runtime) -> Result<()> {
.map(|id| match rt.store().get(id.clone())? {
Some(mut to_entry) => {
to_entry.remove_link(&mut from)?;
- rt.report_touched(to_entry.get_location()).map_err(Error::from)
+ rt.report_touched(to_entry.get_location())
},
None => {
@@ -217,7 +216,7 @@ fn remove_linking(rt: &Runtime) -> Result<()> {
})
.collect::<Result<Vec<_>>>()?;
- rt.report_touched(from.get_location()).map_err(Error::from)
+ rt.report_touched(from.get_location())
}
fn unlink(rt: &Runtime) -> Result<()> {
@@ -231,7 +230,7 @@ fn unlink(rt: &Runtime) -> Result<()> {
.ok_or_else(|| format_err!("No entry for {}", id))?
.unlink(rt.store())?;
- rt.report_touched(&id).map_err(Error::from)
+ rt.report_touched(&id)
})
.collect()
}
@@ -280,7 +279,7 @@ fn list_linkings(rt: &Runtime) -> Result<()> {
.collect::<Result<Vec<_>>>()?;
}
- rt.report_touched(entry.get_location()).map_err(Error::from)
+ rt.report_touched(entry.get_location())
})
.collect::<Result<Vec<_>>>()?;