1
Fork 0

redox: convert to target_family unix

This commit is contained in:
Jeremy Soller 2019-04-07 08:39:54 -06:00
parent 6a91782b72
commit 0498da9a3d
No known key found for this signature in database
GPG key ID: E988B49EE78A7FB1
74 changed files with 590 additions and 6440 deletions

View file

@ -317,7 +317,7 @@ unsafe fn u8_slice_as_os_str(s: &[u8]) -> &OsStr {
// Detect scheme on Redox
fn has_redox_scheme(s: &[u8]) -> bool {
cfg!(target_os = "redox") && s.split(|b| *b == b'/').next().unwrap_or(b"").contains(&b':')
cfg!(target_os = "redox") && s.contains(&b':')
}
////////////////////////////////////////////////////////////////////////////////