aboutsummaryrefslogtreecommitdiff
path: root/helix-lsp
diff options
context:
space:
mode:
authorBlaž Hrastnik2021-09-06 02:32:50 +0000
committerBlaž Hrastnik2021-09-06 06:25:46 +0000
commitbe81f40df8c901f506708a2ce4ff10632fa1d64c (patch)
treeb842f9d8a4b3b9eec3bbed96344e8f1e5b240de0 /helix-lsp
parent9b9c3c77f88af1ff798739aaa3303d563bbe8174 (diff)
lsp: This doesn't need to be a mutable reference
Diffstat (limited to 'helix-lsp')
-rw-r--r--helix-lsp/src/transport.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/helix-lsp/src/transport.rs b/helix-lsp/src/transport.rs
index cf7e66a8..6e28094d 100644
--- a/helix-lsp/src/transport.rs
+++ b/helix-lsp/src/transport.rs
@@ -274,7 +274,7 @@ impl Transport {
async fn send(
transport: Arc<Self>,
mut server_stdin: BufWriter<ChildStdin>,
- mut client_tx: UnboundedSender<(usize, jsonrpc::Call)>,
+ client_tx: UnboundedSender<(usize, jsonrpc::Call)>,
mut client_rx: UnboundedReceiver<Payload>,
initialize_notify: Arc<Notify>,
) {
@@ -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);