From 2c0d2e719dcc9e714d11129f3609091e897a8116 Mon Sep 17 00:00:00 2001 From: wuaoxiang Date: Mon, 22 Aug 2022 11:25:21 +0800 Subject: [PATCH] internal: remove unnecessary stream writer try_clone in lsp-server --- lib/lsp-server/src/socket.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/lsp-server/src/socket.rs b/lib/lsp-server/src/socket.rs index 4a59c4c0fa..36d728456f 100644 --- a/lib/lsp-server/src/socket.rs +++ b/lib/lsp-server/src/socket.rs @@ -15,7 +15,7 @@ pub(crate) fn socket_transport( stream: TcpStream, ) -> (Sender, Receiver, IoThreads) { let (reader_receiver, reader) = make_reader(stream.try_clone().unwrap()); - let (writer_sender, writer) = make_write(stream.try_clone().unwrap()); + let (writer_sender, writer) = make_write(stream); let io_threads = make_io_threads(reader, writer); (writer_sender, reader_receiver, io_threads) }