mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-27 12:29:21 +00:00
cargo clippy --fix
This commit is contained in:
parent
1ab8c7fd27
commit
fad4fa163c
178 changed files with 595 additions and 738 deletions
|
@ -106,7 +106,7 @@ fn replace_fake_sys_root(s: &mut String) {
|
|||
let fake_sysroot_path = get_test_path("fake-sysroot");
|
||||
let fake_sysroot_path = if cfg!(windows) {
|
||||
let normalized_path =
|
||||
fake_sysroot_path.to_str().expect("expected str").replace(r#"\"#, r#"\\"#);
|
||||
fake_sysroot_path.to_str().expect("expected str").replace('\\', r#"\\"#);
|
||||
format!(r#"{}\\"#, normalized_path)
|
||||
} else {
|
||||
format!("{}/", fake_sysroot_path.to_str().expect("expected str"))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue