mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-28 21:05:02 +00:00
fix compilation
This commit is contained in:
parent
5d483cb998
commit
ef08b6c084
2 changed files with 2 additions and 2 deletions
|
@ -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();
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue