We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 40bef0d commit 3c0971dCopy full SHA for 3c0971d
crates/pet-fs/src/path.rs
@@ -83,9 +83,7 @@ fn normalize_case_windows(path: &Path) -> Option<PathBuf> {
83
84
// Strip trailing path separators to match canonicalize behavior
85
// (but keep the root like "C:\")
86
- while result_str.len() > 3
87
- && (result_str.ends_with('\\') || result_str.ends_with('/'))
88
- {
+ while result_str.len() > 3 && (result_str.ends_with('\\') || result_str.ends_with('/')) {
89
result_str.pop();
90
}
91
0 commit comments