mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-27 12:29:21 +00:00
cleanups
This commit is contained in:
parent
e033d8c2a2
commit
8307d38dc1
4 changed files with 99 additions and 148 deletions
|
@ -364,8 +364,8 @@ impl Analysis {
|
|||
pub fn symbol_search(&self, query: Query) -> Cancellable<Vec<NavigationTarget>> {
|
||||
self.with_db(|db| {
|
||||
symbol_index::world_symbols(db, query)
|
||||
.into_iter()
|
||||
.map(|s| s.to_nav(db))
|
||||
.into_iter() // xx: should we make this a par iter?
|
||||
.filter_map(|s| s.try_to_nav(db))
|
||||
.collect::<Vec<_>>()
|
||||
})
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue