internal: remove unnecessary stream writer try_clone in lsp-server

This commit is contained in:
wuaoxiang 2022-08-22 11:25:21 +08:00
parent a670ff8884
commit 2c0d2e719d

View file

@ -15,7 +15,7 @@ pub(crate) fn socket_transport(
stream: TcpStream,
) -> (Sender<Message>, Receiver<Message>, 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)
}