aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAleksey Kladov <[email protected]>2019-01-02 16:41:57 +0000
committerAleksey Kladov <[email protected]>2019-01-02 16:41:57 +0000
commitef08b6c084fc2676655fe6dfb693ab097d3f9fd9 (patch)
treeb710fcdf9773c538d941e725f24b60fc07c48654
parent5d483cb9980b6a74d02bd5d257b7d30e18955ef9 (diff)
fix compilation
-rw-r--r--crates/ra_analysis/src/completion.rs2
-rw-r--r--crates/ra_analysis/src/lib.rs2
2 files changed, 2 insertions, 2 deletions
diff --git a/crates/ra_analysis/src/completion.rs b/crates/ra_analysis/src/completion.rs
index b4ee092b5..739ca6ae8 100644
--- a/crates/ra_analysis/src/completion.rs
+++ b/crates/ra_analysis/src/completion.rs
@@ -58,6 +58,6 @@ fn check_completion(code: &str, expected_completions: &str, kind: CompletionKind
58 } else { 58 } else {
59 single_file_with_position(code) 59 single_file_with_position(code)
60 }; 60 };
61 let completions = completions(&analysis.imp.db, position).unwrap().unwrap(); 61 let completions = completions(&analysis.db, position).unwrap().unwrap();
62 completions.assert_match(expected_completions, kind); 62 completions.assert_match(expected_completions, kind);
63} 63}
diff --git a/crates/ra_analysis/src/lib.rs b/crates/ra_analysis/src/lib.rs
index b4669dfff..54eb2f4d3 100644
--- a/crates/ra_analysis/src/lib.rs
+++ b/crates/ra_analysis/src/lib.rs
@@ -357,7 +357,7 @@ impl Analysis {
357 } 357 }
358 /// Fuzzy searches for a symbol. 358 /// Fuzzy searches for a symbol.
359 pub fn symbol_search(&self, query: Query) -> Cancelable<Vec<NavigationTarget>> { 359 pub fn symbol_search(&self, query: Query) -> Cancelable<Vec<NavigationTarget>> {
360 let res = symbol_index::world_symbols(self.db, query)? 360 let res = symbol_index::world_symbols(&*self.db, query)?
361 .into_iter() 361 .into_iter()
362 .map(|(file_id, symbol)| NavigationTarget { file_id, symbol }) 362 .map(|(file_id, symbol)| NavigationTarget { file_id, symbol })
363 .collect(); 363 .collect();