Unnamed repository; edit this file 'description' to name the repository.
Diffstat (limited to 'lib/lsp-server/src/stdio.rs')
| -rw-r--r-- | lib/lsp-server/src/stdio.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/lsp-server/src/stdio.rs b/lib/lsp-server/src/stdio.rs index 8344c9f56b..c558b6c6e7 100644 --- a/lib/lsp-server/src/stdio.rs +++ b/lib/lsp-server/src/stdio.rs @@ -5,7 +5,7 @@ use std::{ use log::debug; -use crossbeam_channel::{bounded, Receiver, Sender}; +use crossbeam_channel::{Receiver, Sender, bounded}; use crate::Message; @@ -40,7 +40,7 @@ pub(crate) fn stdio_transport() -> (Sender<Message>, Receiver<Message>, IoThread debug!("sending message {:#?}", msg); if let Err(e) = reader_sender.send(msg) { - return Err(io::Error::new(io::ErrorKind::Other, e)); + return Err(io::Error::other(e)); } if is_exit { |