mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-28 12:54:58 +00:00
style: simplify string interpolation
This commit is contained in:
parent
b32f181f47
commit
7c34eb3880
43 changed files with 71 additions and 78 deletions
|
@ -126,7 +126,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.as_str().replace('\\', r#"\\"#);
|
||||
format!(r#"{}\\"#, normalized_path)
|
||||
format!(r#"{normalized_path}\\"#)
|
||||
} else {
|
||||
format!("{}/", fake_sysroot_path.as_str())
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue