Unwrap process.stdio() result

If this is ever `None` here, that's a bug
This commit is contained in:
Jonas Schievink 2020-12-04 14:03:06 +01:00
parent 2845ce5bc6
commit b857149720

View File

@ -104,10 +104,7 @@ pub(crate) fn send_task<R>(&self, req: Request) -> Result<R, tt::ExpansionError>
}
fn client_loop(task_rx: Receiver<Task>, 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) {