summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndrew Gallant <jamslam@gmail.com>2016-09-25 19:57:31 -0400
committerAndrew Gallant <jamslam@gmail.com>2016-09-25 20:00:29 -0400
commita72467996bea8c835ef00c173254f429a2cb5f0b (patch)
tree0181f596f84dc8770b9f5d09a809376721ad3f46
parent9395076468b7cff1421392dec118e08073b49214 (diff)
Fix Windows compilation error.
-rw-r--r--src/pathutil.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/pathutil.rs b/src/pathutil.rs
index 3a020fa6..073010be 100644
--- a/src/pathutil.rs
+++ b/src/pathutil.rs
@@ -114,5 +114,5 @@ pub fn is_file_name<P: AsRef<Path>>(path: P) -> bool {
/// the empty string.
#[cfg(not(unix))]
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)
}