Minor refactor
This commit is contained in:
parent
6f5a56acd9
commit
50e3119aef
@ -32,9 +32,8 @@ fn main() {
|
|||||||
if expected == output {
|
if expected == output {
|
||||||
let mut s = String::from("OK");
|
let mut s = String::from("OK");
|
||||||
if elapsed > Duration::from_millis(10) {
|
if elapsed > Duration::from_millis(10) {
|
||||||
let d = format!(" ({:?})", elapsed);
|
s.push_str(&format!(" ({:?})", elapsed));
|
||||||
s = s + &d;
|
}
|
||||||
};
|
|
||||||
s
|
s
|
||||||
} else {
|
} else {
|
||||||
format!("expected {}, got {}", expected, output)
|
format!("expected {}, got {}", expected, output)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user