aboutsummaryrefslogtreecommitdiff
path: root/crates/ra_lsp_server/src/cargo_target_spec.rs
diff options
context:
space:
mode:
Diffstat (limited to 'crates/ra_lsp_server/src/cargo_target_spec.rs')
-rw-r--r--crates/ra_lsp_server/src/cargo_target_spec.rs6
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 @@
1use crate::{ 1use 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
7use ra_ide_api::{FileId, RunnableKind}; 7use ra_ide_api::{FileId, RunnableKind};
8 8
9pub(crate) fn runnable_args( 9pub(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
60impl CargoTargetSpec { 60impl 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),