aboutsummaryrefslogtreecommitdiff
path: root/crates/ra_lsp_server/src/world.rs
diff options
context:
space:
mode:
authorEmil Lauridsen <[email protected]>2020-01-10 21:41:52 +0000
committerEmil Lauridsen <[email protected]>2020-01-10 21:41:52 +0000
commitd6da18e99d2fb4e67e3bc7503059282b5e14bd13 (patch)
tree712cdb37b25f553c5739f319a849414de480cff4 /crates/ra_lsp_server/src/world.rs
parent1d1eea217d5b674e6cad77704f912a3a76505d70 (diff)
Address nit
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"