Skip to content

Commit

Permalink
Fix formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
nox committed Mar 19, 2024
1 parent e314b3e commit 2bd3ebc
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions tests/histogram.rs
Original file line number Diff line number Diff line change
Expand Up @@ -208,6 +208,12 @@ fn assert_duration(duration: Duration, ms: u128) {
let duration_ms = duration.as_millis();
let max_ms = ms + 20;

assert!(duration_ms >= ms, "duration {duration_ms} should be at least {ms}");
assert!(duration_ms < max_ms, "duration {duration_ms} should be at most {max_ms}");
}
assert!(
duration_ms >= ms,
"duration {duration_ms} should be at least {ms}"
);
assert!(
duration_ms < max_ms,
"duration {duration_ms} should be at most {max_ms}"
);
}

0 comments on commit 2bd3ebc

Please sign in to comment.