Skip to content

Commit

Permalink
DRY'd type inference to use coercion
Browse files Browse the repository at this point in the history
  • Loading branch information
Brad Gibson committed Dec 26, 2017
1 parent 938b80f commit 303d46e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/test_case.rs
Original file line number Diff line number Diff line change
Expand Up @@ -165,8 +165,8 @@ impl TestRunner {
}
let precision = match duration {
_ if duration < 1.0 => 2_usize,
_ if duration < 10.0 => 1_usize,
_ => 0_usize,
_ if duration < 10.0 => 1,
_ => 0,
};
let test_info = TestCaseResults {
title: test.title,
Expand Down

0 comments on commit 303d46e

Please sign in to comment.