mirror of
https://github.com/rust-lang/rust-analyzer
synced 2024-12-27 21:43:37 +00:00
internal: remove unnecessary stream writer try_clone in lsp-server
This commit is contained in:
parent
a670ff8884
commit
2c0d2e719d
1 changed files with 1 additions and 1 deletions
|
@ -15,7 +15,7 @@ pub(crate) fn socket_transport(
|
||||||
stream: TcpStream,
|
stream: TcpStream,
|
||||||
) -> (Sender<Message>, Receiver<Message>, IoThreads) {
|
) -> (Sender<Message>, Receiver<Message>, IoThreads) {
|
||||||
let (reader_receiver, reader) = make_reader(stream.try_clone().unwrap());
|
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);
|
let io_threads = make_io_threads(reader, writer);
|
||||||
(writer_sender, reader_receiver, io_threads)
|
(writer_sender, reader_receiver, io_threads)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue