Minor refactor
This commit is contained in:
parent
b7cda0a0ec
commit
6ec723ea69
@ -41,9 +41,7 @@ fn main() {
|
|||||||
" {}: {}",
|
" {}: {}",
|
||||||
n,
|
n,
|
||||||
if expected == output {
|
if expected == output {
|
||||||
let mut s = String::from("OK");
|
format!("OK ({:?})", elapsed)
|
||||||
s.push_str(&format!(" ({:?})", elapsed));
|
|
||||||
s
|
|
||||||
} else {
|
} else {
|
||||||
format!("expected {}, got {}", expected, output)
|
format!("expected {}, got {}", expected, output)
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user