diff options
Diffstat (limited to 'crates/gen_lsp_server/src/stdio.rs')
-rw-r--r-- | crates/gen_lsp_server/src/stdio.rs | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/crates/gen_lsp_server/src/stdio.rs b/crates/gen_lsp_server/src/stdio.rs index 2d6418400..f8931f2dc 100644 --- a/crates/gen_lsp_server/src/stdio.rs +++ b/crates/gen_lsp_server/src/stdio.rs | |||
@@ -4,7 +4,6 @@ use std::{ | |||
4 | }; | 4 | }; |
5 | 5 | ||
6 | use crossbeam_channel::{bounded, Receiver, Sender}; | 6 | use crossbeam_channel::{bounded, Receiver, Sender}; |
7 | use failure::bail; | ||
8 | use lsp_types::notification::Exit; | 7 | use lsp_types::notification::Exit; |
9 | 8 | ||
10 | use crate::{RawMessage, Result}; | 9 | use crate::{RawMessage, Result}; |
@@ -48,11 +47,11 @@ impl Threads { | |||
48 | pub fn join(self) -> Result<()> { | 47 | pub fn join(self) -> Result<()> { |
49 | match self.reader.join() { | 48 | match self.reader.join() { |
50 | Ok(r) => r?, | 49 | Ok(r) => r?, |
51 | Err(_) => bail!("reader panicked"), | 50 | Err(_) => Err("reader panicked")?, |
52 | } | 51 | } |
53 | match self.writer.join() { | 52 | match self.writer.join() { |
54 | Ok(r) => r, | 53 | Ok(r) => r, |
55 | Err(_) => bail!("writer panicked"), | 54 | Err(_) => Err("writer panicked")?, |
56 | } | 55 | } |
57 | } | 56 | } |
58 | } | 57 | } |