- self.write_log(|| format!(
- "{} {}",
- match *result {
- TestResult::TrOk => "ok".to_owned(),
- TestResult::TrFailed => "failed".to_owned(),
- TestResult::TrFailedMsg(ref msg) => format!("failed: {}", msg),
- TestResult::TrIgnored => "ignored".to_owned(),
- TestResult::TrAllowedFail => "failed (allowed)".to_owned(),
- TestResult::TrBench(ref bs) => fmt_bench_samples(bs),
- TestResult::TrTimedFail => "failed (time limit exceeded)".to_owned(),
- },
- test.name,
- ))?;
+ self.write_log(|| {
+ format!(
+ "{} {}",
+ match *result {
+ TestResult::TrOk => "ok".to_owned(),
+ TestResult::TrFailed => "failed".to_owned(),
+ TestResult::TrFailedMsg(ref msg) => format!("failed: {}", msg),
+ TestResult::TrIgnored => "ignored".to_owned(),
+ TestResult::TrAllowedFail => "failed (allowed)".to_owned(),
+ TestResult::TrBench(ref bs) => fmt_bench_samples(bs),
+ TestResult::TrTimedFail => "failed (time limit exceeded)".to_owned(),
+ },
+ test.name,
+ )
+ })?;