From b85714972081ac7d19d98008b7466d37f6d38432 Mon Sep 17 00:00:00 2001 From: Jonas Schievink Date: Fri, 4 Dec 2020 14:03:06 +0100 Subject: Unwrap `process.stdio()` result If this is ever `None` here, that's a bug --- crates/proc_macro_api/src/process.rs | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'crates/proc_macro_api') 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 { } fn client_loop(task_rx: Receiver, 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) { -- cgit v1.2.3