diff options
| author | Lzu Tao <taolzu@gmail.com> | 2020-07-12 10:17:22 +0000 |
|---|---|---|
| committer | Lzu Tao <taolzu@gmail.com> | 2020-07-12 14:51:04 +0000 |
| commit | 0ff820cb62f0b21d422440353b8def10c05ed735 (patch) | |
| tree | 1158321899fd0782e26ad4d73d3f5514cb0aa216 /src/libstd/sys | |
| parent | 1e05e09fe9df9919dc1c1c0f36255f4f1098fc24 (diff) | |
| download | rust-0ff820cb62f0b21d422440353b8def10c05ed735.tar.gz rust-0ff820cb62f0b21d422440353b8def10c05ed735.zip | |
Move constants to top file
Diffstat (limited to 'src/libstd/sys')
| -rw-r--r-- | src/libstd/sys/windows/path.rs | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/libstd/sys/windows/path.rs b/src/libstd/sys/windows/path.rs index 524f21f889b..e70ddce3aa5 100644 --- a/src/libstd/sys/windows/path.rs +++ b/src/libstd/sys/windows/path.rs @@ -2,6 +2,9 @@ use crate::ffi::OsStr; use crate::mem; use crate::path::Prefix; +pub const MAIN_SEP_STR: &str = "\\"; +pub const MAIN_SEP: char = '\\'; + fn os_str_as_u8_slice(s: &OsStr) -> &[u8] { unsafe { mem::transmute(s) } } @@ -90,5 +93,3 @@ pub fn parse_prefix(path: &OsStr) -> Option<Prefix<'_>> { } } -pub const MAIN_SEP_STR: &str = "\\"; -pub const MAIN_SEP: char = '\\'; |
