From 9fff960636afa0d3edc01891265341c6e4c0cd14 Mon Sep 17 00:00:00 2001 From: mataha Date: Sat, 13 May 2023 18:38:12 +0200 Subject: [PATCH] Remove root from patched UNC windows path drives --- crates/rust-analyzer/src/bin/main.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/rust-analyzer/src/bin/main.rs b/crates/rust-analyzer/src/bin/main.rs index b255a440538..992e174a421 100644 --- a/crates/rust-analyzer/src/bin/main.rs +++ b/crates/rust-analyzer/src/bin/main.rs @@ -246,7 +246,7 @@ fn patch_path_prefix(path: PathBuf) -> PathBuf { format!("{}:", d.to_ascii_uppercase() as char) } Prefix::VerbatimDisk(d) => { - format!(r"\\?\{}:\", d.to_ascii_uppercase() as char) + format!(r"\\?\{}:", d.to_ascii_uppercase() as char) } _ => return path, };