Minor refactor

This commit is contained in:
George Thomas 2025-12-23 15:13:25 +00:00
parent 6f5a56acd9
commit 50e3119aef

View File

@ -32,9 +32,8 @@ fn main() {
if expected == output {
let mut s = String::from("OK");
if elapsed > Duration::from_millis(10) {
let d = format!(" ({:?})", elapsed);
s = s + &d;
};
s.push_str(&format!(" ({:?})", elapsed));
}
s
} else {
format!("expected {}, got {}", expected, output)