diff options
Diffstat (limited to 'crates/ra_lsp_server/src/cargo_target_spec.rs')
-rw-r--r-- | crates/ra_lsp_server/src/cargo_target_spec.rs | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/crates/ra_lsp_server/src/cargo_target_spec.rs b/crates/ra_lsp_server/src/cargo_target_spec.rs index 5fd1e7b6b..56d3f0de4 100644 --- a/crates/ra_lsp_server/src/cargo_target_spec.rs +++ b/crates/ra_lsp_server/src/cargo_target_spec.rs | |||
@@ -6,11 +6,9 @@ use ra_project_model::{self, ProjectWorkspace, TargetKind}; | |||
6 | use crate::{world::WorldSnapshot, Result}; | 6 | use crate::{world::WorldSnapshot, Result}; |
7 | 7 | ||
8 | pub(crate) fn runnable_args( | 8 | pub(crate) fn runnable_args( |
9 | world: &WorldSnapshot, | 9 | spec: Option<CargoTargetSpec>, |
10 | file_id: FileId, | ||
11 | kind: &RunnableKind, | 10 | kind: &RunnableKind, |
12 | ) -> Result<Vec<String>> { | 11 | ) -> Result<Vec<String>> { |
13 | let spec = CargoTargetSpec::for_file(world, file_id)?; | ||
14 | let mut res = Vec::new(); | 12 | let mut res = Vec::new(); |
15 | match kind { | 13 | match kind { |
16 | RunnableKind::Test { test_id } => { | 14 | RunnableKind::Test { test_id } => { |