diff options
author | Jeremy A. Kolb <[email protected]> | 2018-11-30 14:39:30 +0000 |
---|---|---|
committer | Jeremy A. Kolb <[email protected]> | 2018-11-30 14:39:30 +0000 |
commit | ab7843c2d1387b2c5be63a914512f79a0be86cac (patch) | |
tree | 9748b1583dd0d6ffded780fc597857dd8dd2dec3 /crates/ra_lsp_server/src/path_map.rs | |
parent | f32dc7135175c1e8a9ea81d7c18c21b2722f28c5 (diff) |
Put map back
Diffstat (limited to 'crates/ra_lsp_server/src/path_map.rs')
-rw-r--r-- | crates/ra_lsp_server/src/path_map.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/crates/ra_lsp_server/src/path_map.rs b/crates/ra_lsp_server/src/path_map.rs index 33babda4b..02e54629c 100644 --- a/crates/ra_lsp_server/src/path_map.rs +++ b/crates/ra_lsp_server/src/path_map.rs | |||
@@ -33,7 +33,7 @@ impl PathMap { | |||
33 | let file_id = self | 33 | let file_id = self |
34 | .path2id | 34 | .path2id |
35 | .get(path.as_path()) | 35 | .get(path.as_path()) |
36 | .cloned() | 36 | .map(|&id| id) |
37 | .unwrap_or_else(|| { | 37 | .unwrap_or_else(|| { |
38 | inserted = true; | 38 | inserted = true; |
39 | let id = self.new_file_id(); | 39 | let id = self.new_file_id(); |