mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-27 20:42:04 +00:00
Minor, push allocations down
This commit is contained in:
parent
ebb4d29d69
commit
dc2094cfa5
3 changed files with 15 additions and 3 deletions
|
@ -62,7 +62,7 @@ impl FileSetConfig {
|
|||
let mut res = vec![FileSet::default(); self.len()];
|
||||
for (file_id, path) in vfs.iter() {
|
||||
let root = self.classify(&path, &mut scratch_space);
|
||||
res[root].insert(file_id, path)
|
||||
res[root].insert(file_id, path.clone())
|
||||
}
|
||||
res
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue