summaryrefslogtreecommitdiffstats
path: root/bin/core/imag-view/src/lib.rs
diff options
context:
space:
mode:
authorMatthias Beyer <mail@beyermatthias.de>2019-11-23 20:22:31 +0100
committerMatthias Beyer <mail@beyermatthias.de>2019-12-22 19:02:21 +0100
commit0464bfba53255814aadc35d9927c8d0fff2eb00d (patch)
tree1f2f6b26bd37ee639603ac5e3412d05a88b412aa /bin/core/imag-view/src/lib.rs
parent84bb05035b51b05734eef44657cffd1fdb2950db (diff)
Remove error conversion which is not necessary anymore.
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
Diffstat (limited to 'bin/core/imag-view/src/lib.rs')
-rw-r--r--bin/core/imag-view/src/lib.rs5
1 files changed, 2 insertions, 3 deletions
diff --git a/bin/core/imag-view/src/lib.rs b/bin/core/imag-view/src/lib.rs
index d97d8711..b44f0283 100644
--- a/bin/core/imag-view/src/lib.rs
+++ b/bin/core/imag-view/src/lib.rs
@@ -56,7 +56,6 @@ use std::process::Command;
use handlebars::Handlebars;
use toml_query::read::TomlValueReadTypeExt;
-use failure::Error;
use failure::err_msg;
use failure::Fallible as Result;
use resiter::AndThen;
@@ -186,7 +185,7 @@ impl ImagApplication for ImagView {
viewer.view_entry(&entry, &mut outlock)?;
i += 1;
- rt.report_touched(entry.get_location()).map_err(Error::from)
+ rt.report_touched(entry.get_location())
})
.collect()
} else {
@@ -217,7 +216,7 @@ impl ImagApplication for ImagView {
viewer.view_entry(&entry, &mut outlock)?;
i += 1;
- rt.report_touched(entry.get_location()).map_err(Error::from)
+ rt.report_touched(entry.get_location())
})
.collect()
}