on master help sign in
lsp: This doesn't need to be a mutable reference
commitbe81f40df8c901f506708a2ce4ff10632fa1d64c authorBlaž Hrastnik <blaz@mxxn.io> dateMon 6 Sep 2021, 11:32 (5 years ago) parent9b9c3c7
1 file changed+2−2
helix-lsp/src/transport.rs+2−2
helix-lsp/src/transport.rs+2−2
@@ -274,7 +274,7 @@ impl Transport {
274274 async fn send(
275275 transport: Arc<Self>,
276276 mut server_stdin: BufWriter<ChildStdin>,
277− mut client_tx: UnboundedSender<(usize, jsonrpc::Call)>,
277+ client_tx: UnboundedSender<(usize, jsonrpc::Call)>,
278278 mut client_rx: UnboundedReceiver<Payload>,
279279 initialize_notify: Arc<Notify>,
280280 ) {
@@ -318,7 +318,7 @@ impl Transport {
318318 method: lsp_types::notification::Initialized::METHOD.to_string(),
319319 params: jsonrpc::Params::None,
320320 }));
321− match transport.process_server_message(&mut client_tx, notification).await {
321+ match transport.process_server_message(&client_tx, notification).await {
322322 Ok(_) => {}
323323 Err(err) => {
324324 error!("err: <- {:?}", err);