diff options
author | Jonas Schievink <[email protected]> | 2020-12-04 13:03:06 +0000 |
---|---|---|
committer | Jonas Schievink <[email protected]> | 2020-12-04 13:03:06 +0000 |
commit | b85714972081ac7d19d98008b7466d37f6d38432 (patch) | |
tree | cea2580dd236403e6dbf3f6d9a9a69322f06275c | |
parent | 2845ce5bc6d8bd2cadaf0acb3afc3d4e10c76fab (diff) |
Unwrap `process.stdio()` result
If this is ever `None` here, that's a bug
-rw-r--r-- | crates/proc_macro_api/src/process.rs | 5 |
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 | ||
106 | fn client_loop(task_rx: Receiver<Task>, mut process: Process) { | 106 | fn 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) { |