(a: &Path, b: &Path)
| 181 | |
| 182 | #[cfg(windows)] |
| 183 | fn normalized_paths_equal(a: &Path, b: &Path) -> bool { |
| 184 | fn normalize(path: &Path) -> String { |
| 185 | let path = path.to_string_lossy().replace('/', "\\"); |
| 186 | path.strip_prefix(r"\\?\") |
| 187 | .unwrap_or(&path) |
| 188 | .to_ascii_lowercase() |
| 189 | } |
| 190 | |
| 191 | normalize(a) == normalize(b) |
| 192 | } |
| 193 | |
| 194 | #[cfg(not(windows))] |
| 195 | fn normalized_paths_equal(a: &Path, b: &Path) -> bool { |
no test coverage detected