mirror of
https://github.com/rust-lang/rust-analyzer
synced 2024-12-25 20:43:21 +00:00
Put map back
This commit is contained in:
parent
f32dc71351
commit
ab7843c2d1
1 changed files with 1 additions and 1 deletions
|
@ -33,7 +33,7 @@ impl PathMap {
|
|||
let file_id = self
|
||||
.path2id
|
||||
.get(path.as_path())
|
||||
.cloned()
|
||||
.map(|&id| id)
|
||||
.unwrap_or_else(|| {
|
||||
inserted = true;
|
||||
let id = self.new_file_id();
|
||||
|
|
Loading…
Reference in a new issue