mirror of
https://github.com/rust-lang/rust-analyzer
synced 2025-01-13 21:54:42 +00:00
Unwrap process.stdio()
result
If this is ever `None` here, that's a bug
This commit is contained in:
parent
2845ce5bc6
commit
b857149720
1 changed files with 1 additions and 4 deletions
|
@ -104,10 +104,7 @@ impl ProcMacroProcessSrv {
|
|||
}
|
||||
|
||||
fn client_loop(task_rx: Receiver<Task>, mut process: Process) {
|
||||
let (mut stdin, mut stdout) = match process.stdio() {
|
||||
None => return,
|
||||
Some(it) => it,
|
||||
};
|
||||
let (mut stdin, mut stdout) = process.stdio().expect("couldn't access child stdio");
|
||||
|
||||
for Task { req, result_tx } in task_rx {
|
||||
match send_request(&mut stdin, &mut stdout, req) {
|
||||
|
|
Loading…
Reference in a new issue