]> git.lizzy.rs Git - rust.git/blob - src/libstd/sys/wasi/path.rs
libstd: deny(elided_lifetimes_in_paths), fixes in wasi
[rust.git] / src / libstd / sys / wasi / path.rs
1 use crate::path::Prefix;
2 use crate::ffi::OsStr;
3
4 #[inline]
5 pub fn is_sep_byte(b: u8) -> bool {
6     b == b'/'
7 }
8
9 #[inline]
10 pub fn is_verbatim_sep(b: u8) -> bool {
11     b == b'/'
12 }
13
14 pub fn parse_prefix(_: &OsStr) -> Option<Prefix<'_>> {
15     None
16 }
17
18 pub const MAIN_SEP_STR: &str = "/";
19 pub const MAIN_SEP: char = '/';