diff --git a/crates/ra_lsp_server/src/path_map.rs b/crates/ra_lsp_server/src/path_map.rs index 33babda4b4..02e54629c7 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 { let file_id = self .path2id .get(path.as_path()) - .cloned() + .map(|&id| id) .unwrap_or_else(|| { inserted = true; let id = self.new_file_id();