From 9814eab13f8c5269e0ea6a689a0d8bda1c1c5db5 Mon Sep 17 00:00:00 2001 From: sharkdp Date: Sat, 31 Aug 2019 19:35:04 +0200 Subject: [PATCH] Suppress warning in -A mode --- src/printer.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/printer.rs b/src/printer.rs index a53b89b7..8da7af93 100644 --- a/src/printer.rs +++ b/src/printer.rs @@ -222,7 +222,7 @@ impl<'a> InteractivePrinter<'a> { impl<'a> Printer for InteractivePrinter<'a> { fn print_header(&mut self, handle: &mut dyn Write, file: InputFile) -> Result<()> { if !self.config.output_components.header() { - if Some(ContentType::BINARY) == self.content_type { + if Some(ContentType::BINARY) == self.content_type && !self.config.show_nonprintable { let input = match file { InputFile::Ordinary(filename) => format!("file '{}'", filename), _ => "STDIN".into(),