Consolidate byte-identical modules.

This commit is contained in:
Eric Huss
2020-08-20 10:45:18 -07:00
parent 90b1f5ae59
commit 5a4098ed0f
11 changed files with 8 additions and 621 deletions

View File

@@ -8,6 +8,7 @@ pub mod io;
pub mod mutex;
pub mod net;
pub mod os;
#[path = "../unix/path.rs"]
pub mod path;
pub mod pipe;
pub mod process;

View File

@@ -1,19 +0,0 @@
use crate::ffi::OsStr;
use crate::path::Prefix;
#[inline]
pub fn is_sep_byte(b: u8) -> bool {
b == b'/'
}
#[inline]
pub fn is_verbatim_sep(b: u8) -> bool {
b == b'/'
}
pub fn parse_prefix(_: &OsStr) -> Option<Prefix<'_>> {
None
}
pub const MAIN_SEP_STR: &str = "/";
pub const MAIN_SEP: char = '/';