Suppress warning in -A mode

This commit is contained in:
sharkdp 2019-08-31 19:35:04 +02:00 committed by David Peter
parent 82ca8804a2
commit 9814eab13f
1 changed files with 1 additions and 1 deletions

View File

@ -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(),