diff options
Diffstat (limited to 'crates/printer/src/standard.rs')
-rw-r--r-- | crates/printer/src/standard.rs | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/crates/printer/src/standard.rs b/crates/printer/src/standard.rs index 78489906..6cc5374f 100644 --- a/crates/printer/src/standard.rs +++ b/crates/printer/src/standard.rs @@ -884,9 +884,18 @@ impl<'p, 's, M: Matcher, W: WriteColor> Sink for StandardSink<'p, 's, M, W> { fn binary_data( &mut self, - _searcher: &Searcher, + searcher: &Searcher, binary_byte_offset: u64, ) -> Result<bool, io::Error> { + if searcher.binary_detection().quit_byte().is_some() { + if let Some(ref path) = self.path { + log::debug!( + "ignoring {path}: found binary data at \ + offset {binary_byte_offset}", + path = path.as_path().display(), + ); + } + } self.binary_byte_offset = Some(binary_byte_offset); Ok(true) } |