mirror of
https://github.com/BurntSushi/ripgrep.git
synced 2025-05-19 09:40:22 -07:00
Fix Windows compilation error.
This commit is contained in:
parent
9395076468
commit
a72467996b
@ -114,5 +114,5 @@ pub fn is_file_name<P: AsRef<Path>>(path: P) -> bool {
|
|||||||
/// the empty string.
|
/// the empty string.
|
||||||
#[cfg(not(unix))]
|
#[cfg(not(unix))]
|
||||||
pub fn is_file_name<P: AsRef<Path>>(path: P) -> bool {
|
pub fn is_file_name<P: AsRef<Path>>(path: P) -> bool {
|
||||||
path.as_ref().parent().map(|p| p.is_empty()).unwrap_or(false)
|
path.as_ref().parent().map(|p| p.as_os_str().is_empty()).unwrap_or(false)
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user