Skip to content

Commit 518e5df

Browse files
committed
fix
1 parent b7b9955 commit 518e5df

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/file_system.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -172,7 +172,8 @@ fn adjust_canonicalization(p: PathBuf) -> PathBuf {
172172
#[cfg(target_os = "windows")]
173173
#[inline]
174174
fn adjust_canonicalization(p: PathBuf) -> PathBuf {
175-
let p = p.strip_prefix([r#"\\?\"#, r#"\\.\"#]).map(|p| p.to_path_buf()).unwrap_or(p);
175+
let p = p.strip_prefix(r#"\\?\"#).map(|p| p.to_path_buf()).unwrap_or(p);
176+
let p = p.strip_prefix(r#"\\.\"#).map(|p| p.to_path_buf()).unwrap_or(p);
176177
dunce::simplified(&p).to_path_buf()
177178
}
178179

0 commit comments

Comments
 (0)