We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
Path::is_absolute
1 parent 525c478 commit 0632f32Copy full SHA for 0632f32
std/src/path.rs
@@ -2327,7 +2327,9 @@ impl Path {
2327
// FIXME: Allow Redox prefixes
2328
self.has_root() || has_redox_scheme(self.as_u8_slice())
2329
} else {
2330
- self.has_root() && (cfg!(any(unix, target_os = "wasi")) || self.prefix().is_some())
+ self.has_root()
2331
+ && (cfg!(any(unix, target_os = "hermit", target_os = "wasi"))
2332
+ || self.prefix().is_some())
2333
}
2334
2335
0 commit comments