Minor, push allocations down

This commit is contained in:
Aleksey Kladov 2020-07-14 15:57:10 +02:00
parent ebb4d29d69
commit dc2094cfa5
3 changed files with 15 additions and 3 deletions

View file

@ -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
}