aboutsummaryrefslogtreecommitdiff
path: root/crates/ra_lsp_server/src/main_loop
diff options
context:
space:
mode:
authorAleksey Kladov <[email protected]>2020-02-18 11:17:47 +0000
committerAleksey Kladov <[email protected]>2020-02-18 11:17:47 +0000
commit1f142d79ed251db58570a5863b06c8826221f9c9 (patch)
tree368371ac2f842622c90970e75d3286b9b776637d /crates/ra_lsp_server/src/main_loop
parent42c766b2bdb88afbde051db064f255aa71c75fbd (diff)
Refactor
Diffstat (limited to 'crates/ra_lsp_server/src/main_loop')
-rw-r--r--crates/ra_lsp_server/src/main_loop/handlers.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/crates/ra_lsp_server/src/main_loop/handlers.rs b/crates/ra_lsp_server/src/main_loop/handlers.rs
index 833f31d96..92f219e28 100644
--- a/crates/ra_lsp_server/src/main_loop/handlers.rs
+++ b/crates/ra_lsp_server/src/main_loop/handlers.rs
@@ -29,7 +29,7 @@ use serde::{Deserialize, Serialize};
29use serde_json::to_value; 29use serde_json::to_value;
30 30
31use crate::{ 31use crate::{
32 cargo_target_spec::{runnable_args, CargoTargetSpec}, 32 cargo_target_spec::CargoTargetSpec,
33 conv::{ 33 conv::{
34 to_call_hierarchy_item, to_location, Conv, ConvWith, FoldConvCtx, MapConvWith, TryConvWith, 34 to_call_hierarchy_item, to_location, Conv, ConvWith, FoldConvCtx, MapConvWith, TryConvWith,
35 TryConvWithToVec, 35 TryConvWithToVec,
@@ -921,8 +921,8 @@ fn to_lsp_runnable(
921 file_id: FileId, 921 file_id: FileId,
922 runnable: Runnable, 922 runnable: Runnable,
923) -> Result<req::Runnable> { 923) -> Result<req::Runnable> {
924 let spec: Option<CargoTargetSpec> = CargoTargetSpec::for_file(world, file_id)?; 924 let spec = CargoTargetSpec::for_file(world, file_id)?;
925 let args = runnable_args(spec, &runnable.kind)?; 925 let args = CargoTargetSpec::runnable_args(spec, &runnable.kind)?;
926 let line_index = world.analysis().file_line_index(file_id)?; 926 let line_index = world.analysis().file_line_index(file_id)?;
927 let label = match &runnable.kind { 927 let label = match &runnable.kind {
928 RunnableKind::Test { test_id } => format!("test {}", test_id), 928 RunnableKind::Test { test_id } => format!("test {}", test_id),