aboutsummaryrefslogtreecommitdiff
path: root/crates/gen_lsp_server/src/stdio.rs
diff options
context:
space:
mode:
Diffstat (limited to 'crates/gen_lsp_server/src/stdio.rs')
-rw-r--r--crates/gen_lsp_server/src/stdio.rs4
1 files changed, 1 insertions, 3 deletions
diff --git a/crates/gen_lsp_server/src/stdio.rs b/crates/gen_lsp_server/src/stdio.rs
index 5c8e33854..dab2d8da8 100644
--- a/crates/gen_lsp_server/src/stdio.rs
+++ b/crates/gen_lsp_server/src/stdio.rs
@@ -13,9 +13,7 @@ pub fn stdio_transport() -> (Receiver<RawMessage>, Sender<RawMessage>, Threads)
13 let writer = thread::spawn(move || { 13 let writer = thread::spawn(move || {
14 let stdout = stdout(); 14 let stdout = stdout();
15 let mut stdout = stdout.lock(); 15 let mut stdout = stdout.lock();
16 writer_receiver 16 writer_receiver.into_iter().try_for_each(|it| it.write(&mut stdout))?;
17 .into_iter()
18 .try_for_each(|it| it.write(&mut stdout))?;
19 Ok(()) 17 Ok(())
20 }); 18 });
21 let (reader_sender, reader_receiver) = bounded::<RawMessage>(16); 19 let (reader_sender, reader_receiver) = bounded::<RawMessage>(16);