diff --git a/src/libstd/sys/windows/path.rs b/src/libstd/sys/windows/path.rs index fa22d3bb7d6f4..899a3065038d7 100644 --- a/src/libstd/sys/windows/path.rs +++ b/src/libstd/sys/windows/path.rs @@ -50,7 +50,7 @@ pub fn parse_prefix(path: &OsStr) -> Option> { Some((server, share)) => { (u8_slice_as_os_str(server), u8_slice_as_os_str(share)) } - None => (u8_slice_as_os_str(path), u8_slice_as_os_str(&[])), + None => (u8_slice_as_os_str(path), OsStr::new("")), }; return Some(VerbatimUNC(server, share)); } else {