remove cancelable from symbols

This commit is contained in:
Aleksey Kladov 2019-01-15 18:19:09 +03:00
parent 11f3c8afb2
commit fb012e5c1e
5 changed files with 12 additions and 14 deletions

View file

@ -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(