Skip to content

Commit b857149

Browse files
Unwrap process.stdio() result
If this is ever `None` here, that's a bug
1 parent 2845ce5 commit b857149

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

crates/proc_macro_api/src/process.rs

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -104,10 +104,7 @@ impl ProcMacroProcessSrv {
104104
}
105105

106106
fn client_loop(task_rx: Receiver<Task>, mut process: Process) {
107-
let (mut stdin, mut stdout) = match process.stdio() {
108-
None => return,
109-
Some(it) => it,
110-
};
107+
let (mut stdin, mut stdout) = process.stdio().expect("couldn't access child stdio");
111108

112109
for Task { req, result_tx } in task_rx {
113110
match send_request(&mut stdin, &mut stdout, req) {

0 commit comments

Comments
 (0)