Move constants to top file
This commit is contained in:
parent
1e05e09fe9
commit
0ff820cb62
1 changed files with 3 additions and 2 deletions
|
@ -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 = '\\';
|
||||
|
|
Loading…
Reference in a new issue