From d6da18e99d2fb4e67e3bc7503059282b5e14bd13 Mon Sep 17 00:00:00 2001 From: Emil Lauridsen Date: Fri, 10 Jan 2020 22:41:52 +0100 Subject: Address nit --- crates/ra_lsp_server/src/world.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'crates/ra_lsp_server/src/world.rs') 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 { let check_watcher = { let first_workspace = workspaces.first().unwrap(); let cargo_project_root = match first_workspace { - ProjectWorkspace::Cargo { cargo, .. } => cargo.workspace_root.clone(), + ProjectWorkspace::Cargo { cargo, .. } => cargo.workspace_root().to_path_buf(), ProjectWorkspace::Json { .. } => { log::warn!( "Cargo check watching only supported for cargo workspaces, disabling" -- cgit v1.2.3