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 authored and gitbot committed Feb 20, 2025
1 parent 3cd0c58 commit 2814149
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion std/src/path.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2327,7 +2327,9 @@ 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 2814149

Please sign in to comment.