Skip to content

Commit 7408520

Browse files
committed
fix: support wasm platform
1 parent f2dd094 commit 7408520

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/impl_sugar_path.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -188,7 +188,7 @@ impl SugarPath for Path {
188188
/// Check whether a path needs normalization. Returns `false` for already-clean
189189
/// paths, allowing `normalize()` to return `Cow::Borrowed` with zero allocation.
190190
#[inline]
191-
#[cfg(target_family = "unix")]
191+
#[cfg(not(target_family = "windows"))]
192192
fn needs_normalization(path: &Path) -> bool {
193193
let Some(s) = path.to_str() else {
194194
return true;

0 commit comments

Comments
 (0)