mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-27 20:42:04 +00:00
Opt for FxHashMap<Id,Id> instead of <Id,Option<Id>> and apply requested changes
This commit is contained in:
parent
a15cc86c64
commit
9c50d129da
3 changed files with 127 additions and 212 deletions
|
@ -125,13 +125,7 @@ impl FileSetConfig {
|
|||
|
||||
/// Get the lexicographically ordered vector of the underlying map.
|
||||
pub fn roots(&self) -> Vec<(Vec<u8>, u64)> {
|
||||
let mut stream = self.map.stream();
|
||||
let mut vc = vec![];
|
||||
while let Some((pth, idx)) = stream.next() {
|
||||
vc.push((pth.to_vec(), idx));
|
||||
}
|
||||
|
||||
vc
|
||||
self.map.stream().into_byte_vec()
|
||||
}
|
||||
|
||||
/// Returns the set index for the given `path`.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue