mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-28 12:54:58 +00:00
project-model: Fix warnings about clippy str_to_string
rule
This commit is contained in:
parent
d00f1c1b16
commit
5d1f2835af
7 changed files with 16 additions and 16 deletions
|
@ -129,7 +129,7 @@ fn get_fake_sysroot() -> Sysroot {
|
|||
}
|
||||
|
||||
fn rooted_project_json(data: ProjectJsonData) -> ProjectJson {
|
||||
let mut root = "$ROOT$".to_string();
|
||||
let mut root = "$ROOT$".to_owned();
|
||||
replace_root(&mut root, true);
|
||||
let path = Path::new(&root);
|
||||
let base = AbsPath::assert(path);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue