use LocalPtr in navigation target

This commit is contained in:
Aleksey Kladov 2019-01-02 23:35:51 +03:00
parent 267a89bca2
commit 03ea6bcbff
4 changed files with 13 additions and 7 deletions

View file

@ -190,7 +190,7 @@ pub fn handle_workspace_symbol(
let mut res = Vec::new();
for nav in world.analysis().symbol_search(query)? {
let info = SymbolInformation {
name: nav.name().into(),
name: nav.name().to_string(),
kind: nav.kind().conv(),
location: nav.try_conv_with(world)?,
container_name: None,