1
0
mirror of https://github.com/BurntSushi/ripgrep.git synced 2025-06-30 22:23:44 +02:00

log: add message when a binary file is skipped

The way we do this is a little hokey but I believe it is correct.

Fixes #2246
This commit is contained in:
Andrew Gallant
2023-11-24 14:56:00 -05:00
parent fded2a5fe1
commit 0e6e9417f1
6 changed files with 47 additions and 3 deletions

View File

@ -344,7 +344,7 @@ impl<'a> PrinterPath<'a> {
}
/// Return this path as an actual `Path` type.
fn as_path(&self) -> &Path {
pub(crate) fn as_path(&self) -> &Path {
#[cfg(unix)]
fn imp<'p>(p: &'p PrinterPath<'_>) -> &'p Path {
use std::{ffi::OsStr, os::unix::ffi::OsStrExt};