aboutsummaryrefslogtreecommitdiff
path: root/crates/ra_lsp_server/src/world.rs
diff options
context:
space:
mode:
Diffstat (limited to 'crates/ra_lsp_server/src/world.rs')
-rw-r--r--crates/ra_lsp_server/src/world.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/crates/ra_lsp_server/src/world.rs b/crates/ra_lsp_server/src/world.rs
index 36b5242d1..cea18937f 100644
--- a/crates/ra_lsp_server/src/world.rs
+++ b/crates/ra_lsp_server/src/world.rs
@@ -135,7 +135,7 @@ impl WorldState {
135 let check_watcher = { 135 let check_watcher = {
136 let first_workspace = workspaces.first().unwrap(); 136 let first_workspace = workspaces.first().unwrap();
137 let cargo_project_root = match first_workspace { 137 let cargo_project_root = match first_workspace {
138 ProjectWorkspace::Cargo { cargo, .. } => cargo.workspace_root.clone(), 138 ProjectWorkspace::Cargo { cargo, .. } => cargo.workspace_root().to_path_buf(),
139 ProjectWorkspace::Json { .. } => { 139 ProjectWorkspace::Json { .. } => {
140 log::warn!( 140 log::warn!(
141 "Cargo check watching only supported for cargo workspaces, disabling" 141 "Cargo check watching only supported for cargo workspaces, disabling"