fix compilation
This commit is contained in:
@@ -58,6 +58,6 @@ fn check_completion(code: &str, expected_completions: &str, kind: CompletionKind
|
|||||||
} else {
|
} else {
|
||||||
single_file_with_position(code)
|
single_file_with_position(code)
|
||||||
};
|
};
|
||||||
let completions = completions(&analysis.imp.db, position).unwrap().unwrap();
|
let completions = completions(&analysis.db, position).unwrap().unwrap();
|
||||||
completions.assert_match(expected_completions, kind);
|
completions.assert_match(expected_completions, kind);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -357,7 +357,7 @@ impl Analysis {
|
|||||||
}
|
}
|
||||||
/// Fuzzy searches for a symbol.
|
/// Fuzzy searches for a symbol.
|
||||||
pub fn symbol_search(&self, query: Query) -> Cancelable<Vec<NavigationTarget>> {
|
pub fn symbol_search(&self, query: Query) -> Cancelable<Vec<NavigationTarget>> {
|
||||||
let res = symbol_index::world_symbols(self.db, query)?
|
let res = symbol_index::world_symbols(&*self.db, query)?
|
||||||
.into_iter()
|
.into_iter()
|
||||||
.map(|(file_id, symbol)| NavigationTarget { file_id, symbol })
|
.map(|(file_id, symbol)| NavigationTarget { file_id, symbol })
|
||||||
.collect();
|
.collect();
|
||||||
|
|||||||
Reference in New Issue
Block a user