aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJonas Schievink <[email protected]>2020-12-04 13:03:06 +0000
committerJonas Schievink <[email protected]>2020-12-04 13:03:06 +0000
commitb85714972081ac7d19d98008b7466d37f6d38432 (patch)
treecea2580dd236403e6dbf3f6d9a9a69322f06275c
parent2845ce5bc6d8bd2cadaf0acb3afc3d4e10c76fab (diff)
Unwrap `process.stdio()` result
If this is ever `None` here, that's a bug
-rw-r--r--crates/proc_macro_api/src/process.rs5
1 files changed, 1 insertions, 4 deletions
diff --git a/crates/proc_macro_api/src/process.rs b/crates/proc_macro_api/src/process.rs
index 0aeb38a8a..b66613c38 100644
--- a/crates/proc_macro_api/src/process.rs
+++ b/crates/proc_macro_api/src/process.rs
@@ -104,10 +104,7 @@ impl ProcMacroProcessSrv {
104} 104}
105 105
106fn client_loop(task_rx: Receiver<Task>, mut process: Process) { 106fn client_loop(task_rx: Receiver<Task>, mut process: Process) {
107 let (mut stdin, mut stdout) = match process.stdio() { 107 let (mut stdin, mut stdout) = process.stdio().expect("couldn't access child stdio");
108 None => return,
109 Some(it) => it,
110 };
111 108
112 for Task { req, result_tx } in task_rx { 109 for Task { req, result_tx } in task_rx {
113 match send_request(&mut stdin, &mut stdout, req) { 110 match send_request(&mut stdin, &mut stdout, req) {