We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1e05e09 commit 0ff820cCopy full SHA for 0ff820c
src/libstd/sys/windows/path.rs
@@ -2,6 +2,9 @@ use crate::ffi::OsStr;
2
use crate::mem;
3
use crate::path::Prefix;
4
5
+pub const MAIN_SEP_STR: &str = "\\";
6
+pub const MAIN_SEP: char = '\\';
7
+
8
fn os_str_as_u8_slice(s: &OsStr) -> &[u8] {
9
unsafe { mem::transmute(s) }
10
}
@@ -90,5 +93,3 @@ pub fn parse_prefix(path: &OsStr) -> Option<Prefix<'_>> {
90
93
91
94
92
95
-pub const MAIN_SEP_STR: &str = "\\";
-pub const MAIN_SEP: char = '\\';
0 commit comments