mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-27 04:19:13 +00:00
Get rid of failure: gen_lsp_server
This commit is contained in:
parent
84b6610782
commit
a931fb1ef6
7 changed files with 21 additions and 21 deletions
|
@ -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")?,
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue