diff options
Diffstat (limited to 'bin/core/imag-header/src/lib.rs')
-rw-r--r-- | bin/core/imag-header/src/lib.rs | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/bin/core/imag-header/src/lib.rs b/bin/core/imag-header/src/lib.rs index 243cd939..3fbd9bd5 100644 --- a/bin/core/imag-header/src/lib.rs +++ b/bin/core/imag-header/src/lib.rs @@ -180,7 +180,7 @@ fn has<'a, 'e, I>(rt: &Runtime, mtch: &ArgMatches<'a>, iter: I) -> Result<()> if !rt.output_is_pipe() { writeln!(output, "{}", entry.get_location())?; } - rt.report_touched(entry.get_location()).map_err(Error::from) + rt.report_touched(entry.get_location()) } else { Ok(()) } @@ -203,7 +203,7 @@ fn hasnt<'a, 'e, I>(rt: &Runtime, mtch: &ArgMatches<'a>, iter: I) -> Result<()> if !rt.output_is_pipe() { writeln!(output, "{}", entry.get_location())?; } - rt.report_touched(entry.get_location()).map_err(Error::from) + rt.report_touched(entry.get_location()) } }) .collect() @@ -256,7 +256,7 @@ fn int<'a, 'e, I>(rt: &Runtime, mtch: &ArgMatches<'a>, iter: I) -> Result<()> } }) .filter_map_ok(|(b, e)| if b { Some(e) } else { None }) - .and_then_ok(|entry| rt.report_touched(entry.get_location()).map_err(Error::from)) + .and_then_ok(|entry| rt.report_touched(entry.get_location())) .collect() } @@ -294,7 +294,7 @@ fn float<'a, 'e, I>(rt: &Runtime, mtch: &ArgMatches<'a>, iter: I) -> Result<()> } }) .filter_map_ok(|(b, e)| if b { Some(e) } else { None }) - .and_then_ok(|entry| rt.report_touched(entry.get_location()).map_err(Error::from)) + .and_then_ok(|entry| rt.report_touched(entry.get_location())) .collect() } @@ -320,7 +320,7 @@ fn string<'a, 'e, I>(rt: &Runtime, mtch: &ArgMatches<'a>, iter: I) -> Result<()> } }) .filter_map_ok(|(b, e)| if b { Some(e) } else { None }) - .and_then_ok(|entry| rt.report_touched(entry.get_location()).map_err(Error::from)) + .and_then_ok(|entry| rt.report_touched(entry.get_location())) .collect() } @@ -342,7 +342,7 @@ fn boolean<'a, 'e, I>(rt: &Runtime, mtch: &ArgMatches<'a>, iter: I) -> Result<() } }) .filter_map_ok(|(b, e)| if b { Some(e) } else { None }) - .and_then_ok(|entry| rt.report_touched(entry.get_location()).map_err(Error::from)) + .and_then_ok(|entry| rt.report_touched(entry.get_location())) .collect() } |