about summary refs log tree commit diff
path: root/lib/lsp-server/src/stdio.rs
diff options
context:
space:
mode:
authorLukas Wirth <lukastw97@gmail.com>2024-01-01 14:06:56 +0100
committerLukas Wirth <lukastw97@gmail.com>2024-01-01 14:10:46 +0100
commit3c8dd9e89ef8295241187ddc092d9b675b7db48d (patch)
tree7c60c182a332bee45a5a1d58fcfb13a414829892 /lib/lsp-server/src/stdio.rs
parent06be1b1f34ec358594e6d6493876eb7af22c8b47 (diff)
Expose whether a channel has been dropped in lsp-server errors
Diffstat (limited to 'lib/lsp-server/src/stdio.rs')
-rw-r--r--lib/lsp-server/src/stdio.rs3
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/lsp-server/src/stdio.rs b/lib/lsp-server/src/stdio.rs
index e487b9b4622..cea199d0293 100644
--- a/lib/lsp-server/src/stdio.rs
+++ b/lib/lsp-server/src/stdio.rs
@@ -15,8 +15,7 @@ pub(crate) fn stdio_transport() -> (Sender<Message>, Receiver<Message>, IoThread
     let writer = thread::spawn(move || {
         let stdout = stdout();
         let mut stdout = stdout.lock();
-        writer_receiver.into_iter().try_for_each(|it| it.write(&mut stdout))?;
-        Ok(())
+        writer_receiver.into_iter().try_for_each(|it| it.write(&mut stdout))
     });
     let (reader_sender, reader_receiver) = bounded::<Message>(0);
     let reader = thread::spawn(move || {