We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b1d6798 commit 0281a05Copy full SHA for 0281a05
src/libstd/sys/windows/path.rs
@@ -50,7 +50,7 @@ pub fn parse_prefix(path: &OsStr) -> Option<Prefix<'_>> {
50
Some((server, share)) => {
51
(u8_slice_as_os_str(server), u8_slice_as_os_str(share))
52
}
53
- None => (u8_slice_as_os_str(path), u8_slice_as_os_str(&[])),
+ None => (u8_slice_as_os_str(path), OsStr::new("")),
54
};
55
return Some(VerbatimUNC(server, share));
56
} else {
0 commit comments