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-grep/src | |
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-grep/src')
-rw-r--r-- | bin/core/imag-grep/src/lib.rs | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/bin/core/imag-grep/src/lib.rs b/bin/core/imag-grep/src/lib.rs index 8a04eaf3..be5d4e2a 100644 --- a/bin/core/imag-grep/src/lib.rs +++ b/bin/core/imag-grep/src/lib.rs @@ -48,7 +48,6 @@ use std::io::Write; use regex::Regex; use clap::App; -use failure::Error; use failure::Fallible as Result; use failure::err_msg; use resiter::AndThen; @@ -154,6 +153,6 @@ fn show(rt: &Runtime, e: &Entry, re: &Regex, opts: &Options, count: &mut usize) *count += 1; } - rt.report_touched(e.get_location()).map_err(Error::from) + rt.report_touched(e.get_location()) } |