about summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--tests/integration.rs9
1 files changed, 2 insertions, 7 deletions
diff --git a/tests/integration.rs b/tests/integration.rs
index 0efbec18b4f..00eb140544f 100644
--- a/tests/integration.rs
+++ b/tests/integration.rs
@@ -68,13 +68,8 @@ fn integration_test() {
     }
 
     match output.status.code() {
-        Some(code) => {
-            if code == 0 {
-                println!("Compilation successful");
-            } else {
-                eprintln!("Compilation failed. Exit code: {}", code);
-            }
-        },
+        Some(0) => println!("Compilation successful"),
+        Some(code) => eprintln!("Compilation failed. Exit code: {}", code),
         None => panic!("Process terminated by signal"),
     }
 }