Skip to content

Commit

Permalink
Fix Windows compilation error.
Browse files Browse the repository at this point in the history
  • Loading branch information
amsharma91 committed Sep 20, 2016
1 parent 5fa9523 commit 4ec7d30
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/pathutil.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}

0 comments on commit 4ec7d30

Please sign in to comment.