From ab7843c2d1387b2c5be63a914512f79a0be86cac Mon Sep 17 00:00:00 2001 From: "Jeremy A. Kolb" Date: Fri, 30 Nov 2018 09:39:30 -0500 Subject: Put map back --- crates/ra_lsp_server/src/path_map.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 { let file_id = self .path2id .get(path.as_path()) - .cloned() + .map(|&id| id) .unwrap_or_else(|| { inserted = true; let id = self.new_file_id(); -- cgit v1.2.3