From a72467996bea8c835ef00c173254f429a2cb5f0b Mon Sep 17 00:00:00 2001 From: Andrew Gallant Date: Sun, 25 Sep 2016 19:57:31 -0400 Subject: [PATCH] Fix Windows compilation error. --- src/pathutil.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pathutil.rs b/src/pathutil.rs index 3a020fa..073010b 100644 --- a/src/pathutil.rs +++ b/src/pathutil.rs @@ -114,5 +114,5 @@ pub fn is_file_name>(path: P) -> bool { /// the empty string. #[cfg(not(unix))] pub fn is_file_name>(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) }