diff options
-rw-r--r-- | bin/core/imag-header/src/lib.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/bin/core/imag-header/src/lib.rs b/bin/core/imag-header/src/lib.rs index cbce8abf..243cd939 100644 --- a/bin/core/imag-header/src/lib.rs +++ b/bin/core/imag-header/src/lib.rs @@ -176,7 +176,7 @@ fn has<'a, 'e, I>(rt: &Runtime, mtch: &ArgMatches<'a>, iter: I) -> Result<()> iter.and_then_ok(|entry| { trace!("Processing headers: working on {:?}", entry.get_location()); - if let Some(_) = entry.get_header().read(header_path)? { + if entry.get_header().read(header_path)?.is_some() { if !rt.output_is_pipe() { writeln!(output, "{}", entry.get_location())?; } |