File tree 2 files changed +2
-11
lines changed
2 files changed +2
-11
lines changed Original file line number Diff line number Diff line change @@ -294,11 +294,6 @@ where
294
294
}
295
295
}
296
296
297
- // Detect scheme on Redox
298
- pub ( crate ) fn has_redox_scheme ( s : & [ u8 ] ) -> bool {
299
- cfg ! ( target_os = "redox" ) && s. contains ( & b':' )
300
- }
301
-
302
297
////////////////////////////////////////////////////////////////////////////////
303
298
// Cross-platform, iterator-independent parsing
304
299
////////////////////////////////////////////////////////////////////////////////
@@ -2834,8 +2829,7 @@ impl Path {
2834
2829
Components {
2835
2830
path : self . as_u8_slice ( ) ,
2836
2831
prefix,
2837
- has_physical_root : has_physical_root ( self . as_u8_slice ( ) , prefix)
2838
- || has_redox_scheme ( self . as_u8_slice ( ) ) ,
2832
+ has_physical_root : has_physical_root ( self . as_u8_slice ( ) , prefix) ,
2839
2833
front : State :: Prefix ,
2840
2834
back : State :: Body ,
2841
2835
}
Original file line number Diff line number Diff line change @@ -62,10 +62,7 @@ pub(crate) fn absolute(path: &Path) -> io::Result<PathBuf> {
62
62
}
63
63
64
64
pub ( crate ) fn is_absolute ( path : & Path ) -> bool {
65
- if cfg ! ( target_os = "redox" ) {
66
- // FIXME: Allow Redox prefixes
67
- path. has_root ( ) || crate :: path:: has_redox_scheme ( path. as_u8_slice ( ) )
68
- } else if cfg ! ( any( unix, target_os = "hermit" , target_os = "wasi" ) ) {
65
+ if cfg ! ( any( unix, target_os = "hermit" , target_os = "wasi" ) ) {
69
66
path. has_root ( )
70
67
} else {
71
68
path. has_root ( ) && path. prefix ( ) . is_some ( )
You can’t perform that action at this time.
0 commit comments