Remove has_redox_scheme
Redox OS is moving away from name:/path style paths to /scheme/name/path style paths which are already handled correctly without has_redox_scheme.
This commit is contained in:
parent
83ee034d03
commit
43499bfe2e
2 changed files with 2 additions and 11 deletions
|
|
@ -62,10 +62,7 @@ pub(crate) fn absolute(path: &Path) -> io::Result<PathBuf> {
|
|||
}
|
||||
|
||||
pub(crate) fn is_absolute(path: &Path) -> bool {
|
||||
if cfg!(target_os = "redox") {
|
||||
// FIXME: Allow Redox prefixes
|
||||
path.has_root() || crate::path::has_redox_scheme(path.as_u8_slice())
|
||||
} else if cfg!(any(unix, target_os = "hermit", target_os = "wasi")) {
|
||||
if cfg!(any(unix, target_os = "hermit", target_os = "wasi")) {
|
||||
path.has_root()
|
||||
} else {
|
||||
path.has_root() && path.prefix().is_some()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue