Skip to content

Commit

Permalink
Fix Path::is_absolute on Hermit
Browse files Browse the repository at this point in the history
  • Loading branch information
mkroening committed Dec 13, 2024
1 parent 3da8bfb commit 77e5182
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion library/std/src/path.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2327,7 +2327,7 @@ impl Path {
// FIXME: Allow Redox prefixes
self.has_root() || has_redox_scheme(self.as_u8_slice())
} else {
self.has_root() && (cfg!(any(unix, target_os = "wasi")) || self.prefix().is_some())
self.has_root() && (cfg!(any(unix, target_os = "hermit", target_os = "wasi")) || self.prefix().is_some())
}
}

Expand Down

0 comments on commit 77e5182

Please sign in to comment.