mirror of
https://github.com/rust-lang/rust-analyzer
synced 2024-12-27 05:23:24 +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
|
let file_id = self
|
||||||
.path2id
|
.path2id
|
||||||
.get(path.as_path())
|
.get(path.as_path())
|
||||||
.cloned()
|
.map(|&id| id)
|
||||||
.unwrap_or_else(|| {
|
.unwrap_or_else(|| {
|
||||||
inserted = true;
|
inserted = true;
|
||||||
let id = self.new_file_id();
|
let id = self.new_file_id();
|
||||||
|
|
Loading…
Reference in a new issue