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 | 6 |
1 files changed, 3 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 cdf2ec10b..742361155 100644 --- a/crates/ra_lsp_server/src/cargo_target_spec.rs +++ b/crates/ra_lsp_server/src/cargo_target_spec.rs | |||
@@ -1,13 +1,13 @@ | |||
1 | use crate::{ | 1 | use crate::{ |
2 | project_model::{self, TargetKind}, | 2 | project_model::{self, TargetKind}, |
3 | server_world::ServerWorld, | 3 | world::WorldSnapshot, |
4 | Result | 4 | Result |
5 | }; | 5 | }; |
6 | 6 | ||
7 | use ra_ide_api::{FileId, RunnableKind}; | 7 | use ra_ide_api::{FileId, RunnableKind}; |
8 | 8 | ||
9 | pub(crate) fn runnable_args( | 9 | pub(crate) fn runnable_args( |
10 | world: &ServerWorld, | 10 | world: &WorldSnapshot, |
11 | file_id: FileId, | 11 | file_id: FileId, |
12 | kind: &RunnableKind, | 12 | kind: &RunnableKind, |
13 | ) -> Result<Vec<String>> { | 13 | ) -> Result<Vec<String>> { |
@@ -58,7 +58,7 @@ pub struct CargoTargetSpec { | |||
58 | } | 58 | } |
59 | 59 | ||
60 | impl CargoTargetSpec { | 60 | impl CargoTargetSpec { |
61 | pub fn for_file(world: &ServerWorld, file_id: FileId) -> Result<Option<CargoTargetSpec>> { | 61 | pub fn for_file(world: &WorldSnapshot, file_id: FileId) -> Result<Option<CargoTargetSpec>> { |
62 | let &crate_id = match world.analysis().crate_for(file_id)?.first() { | 62 | let &crate_id = match world.analysis().crate_for(file_id)?.first() { |
63 | Some(crate_id) => crate_id, | 63 | Some(crate_id) => crate_id, |
64 | None => return Ok(None), | 64 | None => return Ok(None), |