diff -r 4b0185841058 -r 27fe8cc1338f rust/chg/src/uihandler.rs --- a/rust/chg/src/uihandler.rs Sat Apr 11 02:51:03 2020 +0900 +++ b/rust/chg/src/uihandler.rs Sat Apr 11 17:43:29 2020 +0900 @@ -67,16 +67,11 @@ async fn run_system(&mut self, spec: &CommandSpec) -> io::Result { let status = new_shell_command(&spec).spawn()?.await?; - // TODO: unindent - { - { - let code = status - .code() - .or_else(|| status.signal().map(|n| -n)) - .expect("either exit code or signal should be set"); - Ok(code) - } - } + let code = status + .code() + .or_else(|| status.signal().map(|n| -n)) + .expect("either exit code or signal should be set"); + Ok(code) } }