From a931fb1ef633473e272bb3f9ba86968dd90f44a7 Mon Sep 17 00:00:00 2001 From: Muhammad Mominul Huque Date: Sat, 15 Jun 2019 01:03:17 +0600 Subject: Get rid of failure: gen_lsp_server --- crates/gen_lsp_server/src/stdio.rs | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'crates/gen_lsp_server/src/stdio.rs') 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::{ }; use crossbeam_channel::{bounded, Receiver, Sender}; -use failure::bail; use lsp_types::notification::Exit; use crate::{RawMessage, Result}; @@ -48,11 +47,11 @@ impl Threads { pub fn join(self) -> Result<()> { match self.reader.join() { Ok(r) => r?, - Err(_) => bail!("reader panicked"), + Err(_) => Err("reader panicked")?, } match self.writer.join() { Ok(r) => r, - Err(_) => bail!("writer panicked"), + Err(_) => Err("writer panicked")?, } } } -- cgit v1.2.3