mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-10-09 18:02:48 +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) {
|
fn client_loop(task_rx: Receiver<Task>, mut process: Process) {
|
||||||
let (mut stdin, mut stdout) = match process.stdio() {
|
let (mut stdin, mut stdout) = process.stdio().expect("couldn't access child stdio");
|
||||||
None => return,
|
|
||||||
Some(it) => it,
|
|
||||||
};
|
|
||||||
|
|
||||||
for Task { req, result_tx } in task_rx {
|
for Task { req, result_tx } in task_rx {
|
||||||
match send_request(&mut stdin, &mut stdout, req) {
|
match send_request(&mut stdin, &mut stdout, req) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue