summaryrefslogtreecommitdiffstats
path: root/bin/core/imag-header/src/lib.rs
diff options
context:
space:
mode:
Diffstat (limited to 'bin/core/imag-header/src/lib.rs')
-rw-r--r--bin/core/imag-header/src/lib.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/bin/core/imag-header/src/lib.rs b/bin/core/imag-header/src/lib.rs
index 7617a16a..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())?;
}
@@ -197,7 +197,7 @@ fn hasnt<'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() {
Ok(())
} else {
if !rt.output_is_pipe() {