mirror of
https://github.com/helix-editor/helix.git
synced 2025-01-19 13:37:06 +04:00
lsp: This doesn't need to be a mutable reference
This commit is contained in:
parent
9b9c3c77f8
commit
be81f40df8
@ -274,7 +274,7 @@ async fn err(_transport: Arc<Self>, mut server_stderr: BufReader<ChildStderr>) {
|
||||
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 @@ fn is_initialize(payload: &Payload) -> bool {
|
||||
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);
|
||||
|
Loading…
Reference in New Issue
Block a user