We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f2dd094 commit 7408520Copy full SHA for 7408520
src/impl_sugar_path.rs
@@ -188,7 +188,7 @@ impl SugarPath for Path {
188
/// Check whether a path needs normalization. Returns `false` for already-clean
189
/// paths, allowing `normalize()` to return `Cow::Borrowed` with zero allocation.
190
#[inline]
191
-#[cfg(target_family = "unix")]
+#[cfg(not(target_family = "windows"))]
192
fn needs_normalization(path: &Path) -> bool {
193
let Some(s) = path.to_str() else {
194
return true;
0 commit comments