From be81f40df8c901f506708a2ce4ff10632fa1d64c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bla=C5=BE=20Hrastnik?= Date: Mon, 6 Sep 2021 11:32:50 +0900 Subject: [PATCH] lsp: This doesn't need to be a mutable reference --- helix-lsp/src/transport.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/helix-lsp/src/transport.rs b/helix-lsp/src/transport.rs index cf7e66a87..6e28094d1 100644 --- a/helix-lsp/src/transport.rs +++ b/helix-lsp/src/transport.rs @@ -274,7 +274,7 @@ impl Transport { async fn send( transport: Arc, mut server_stdin: BufWriter, - mut client_tx: UnboundedSender<(usize, jsonrpc::Call)>, + client_tx: UnboundedSender<(usize, jsonrpc::Call)>, mut client_rx: UnboundedReceiver, initialize_notify: Arc, ) { @@ -318,7 +318,7 @@ impl Transport { method: lsp_types::notification::Initialized::METHOD.to_string(), params: jsonrpc::Params::None, })); - match transport.process_server_message(&mut client_tx, notification).await { + match transport.process_server_message(&client_tx, notification).await { Ok(_) => {} Err(err) => { error!("err: <- {:?}", err);