diff rust/chg/src/uihandler.rs @ 44756:27fe8cc1338f

rust-chg: clean up excessive indents Differential Revision: https://phab.mercurial-scm.org/D8450
author Yuya Nishihara <yuya@tcha.org>
date Sat, 11 Apr 2020 17:43:29 +0900
parents 4b0185841058
children 426294d06ddc
line wrap: on
line diff
--- 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<i32> {
         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)
     }
 }