]> git.lizzy.rs Git - rust.git/blobdiff - library/test/src/test_result.rs
Rollup merge of #95189 - fmease:fix-issue-94340, r=estebank
[rust.git] / library / test / src / test_result.rs
index 8c216a1e0e70e2d40206073610ac6b7be29a1cf1..7f44d6e3d0f122dff5157cd0d2914f2e2f097499 100644 (file)
@@ -89,7 +89,7 @@ pub fn get_result_from_exit_code(
     let result = match code {
         TR_OK => TestResult::TrOk,
         TR_FAILED => TestResult::TrFailed,
-        _ => TestResult::TrFailedMsg(format!("got unexpected return code {}", code)),
+        _ => TestResult::TrFailedMsg(format!("got unexpected return code {code}")),
     };
 
     // If test is already failed (or allowed to fail), do not change the result.