diff --git a/crates/ra_lsp_server/src/main.rs b/crates/ra_lsp_server/src/main.rs index d40fed9475..852fae0277 100644 --- a/crates/ra_lsp_server/src/main.rs +++ b/crates/ra_lsp_server/src/main.rs @@ -66,7 +66,7 @@ fn run_server() -> Result<()> { workspace_roots, initialize_params.capabilities, server_config, - &connection, + connection, )?; log::info!("shutting down IO..."); diff --git a/crates/ra_lsp_server/src/main_loop.rs b/crates/ra_lsp_server/src/main_loop.rs index 25fa51b8a7..2059f98001 100644 --- a/crates/ra_lsp_server/src/main_loop.rs +++ b/crates/ra_lsp_server/src/main_loop.rs @@ -52,7 +52,7 @@ pub fn main_loop( ws_roots: Vec, client_caps: ClientCapabilities, config: ServerConfig, - connection: &Connection, + connection: Connection, ) -> Result<()> { log::info!("server_config: {:#?}", config); @@ -174,7 +174,7 @@ pub fn main_loop( &pool, &task_sender, &libdata_sender, - connection, + &connection, &mut world_state, &mut loop_state, event, diff --git a/crates/ra_lsp_server/tests/heavy_tests/support.rs b/crates/ra_lsp_server/tests/heavy_tests/support.rs index 89f65cef45..86073b57df 100644 --- a/crates/ra_lsp_server/tests/heavy_tests/support.rs +++ b/crates/ra_lsp_server/tests/heavy_tests/support.rs @@ -118,7 +118,7 @@ impl Server { experimental: None, }, ServerConfig { with_sysroot, ..ServerConfig::default() }, - &connection, + connection, ) .unwrap() })