mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-27 04:19:13 +00:00
remove cancelable from symbols
This commit is contained in:
parent
11f3c8afb2
commit
fb012e5c1e
5 changed files with 12 additions and 14 deletions
|
@ -381,12 +381,11 @@ impl Analysis {
|
|||
/// Fuzzy searches for a symbol.
|
||||
pub fn symbol_search(&self, query: Query) -> Cancelable<Vec<NavigationTarget>> {
|
||||
self.with_db(|db| {
|
||||
let res = symbol_index::world_symbols(db, query)?
|
||||
symbol_index::world_symbols(db, query)
|
||||
.into_iter()
|
||||
.map(NavigationTarget::from_symbol)
|
||||
.collect::<Vec<_>>();
|
||||
Ok(res)
|
||||
})?
|
||||
.collect::<Vec<_>>()
|
||||
})
|
||||
}
|
||||
|
||||
pub fn goto_definition(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue