Skip to content

Commit 0ff820c

Browse files
committed
Move constants to top file
1 parent 1e05e09 commit 0ff820c

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/libstd/sys/windows/path.rs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,9 @@ use crate::ffi::OsStr;
22
use crate::mem;
33
use crate::path::Prefix;
44

5+
pub const MAIN_SEP_STR: &str = "\\";
6+
pub const MAIN_SEP: char = '\\';
7+
58
fn os_str_as_u8_slice(s: &OsStr) -> &[u8] {
69
unsafe { mem::transmute(s) }
710
}
@@ -90,5 +93,3 @@ pub fn parse_prefix(path: &OsStr) -> Option<Prefix<'_>> {
9093
}
9194
}
9295

93-
pub const MAIN_SEP_STR: &str = "\\";
94-
pub const MAIN_SEP: char = '\\';

0 commit comments

Comments
 (0)