From 03ea6bcbffd4ae3ac5289ff7d434450c219186a8 Mon Sep 17 00:00:00 2001 From: Aleksey Kladov Date: Wed, 2 Jan 2019 23:35:51 +0300 Subject: use LocalPtr in navigation target --- crates/ra_lsp_server/src/main_loop/handlers.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'crates/ra_lsp_server/src/main_loop/handlers.rs') diff --git a/crates/ra_lsp_server/src/main_loop/handlers.rs b/crates/ra_lsp_server/src/main_loop/handlers.rs index 26b6c7d8a..b5792f3b8 100644 --- a/crates/ra_lsp_server/src/main_loop/handlers.rs +++ b/crates/ra_lsp_server/src/main_loop/handlers.rs @@ -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, -- cgit v1.2.3