Skip to content

Commit ef39b50

Browse files
committed
fix clippy::absurd_extreme_comparisons in tests
1 parent 6e7bbfb commit ef39b50

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/quick.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1548,7 +1548,7 @@ quickcheck! {
15481548
fn counts(nums: Vec<isize>) -> TestResult {
15491549
let counts = nums.iter().counts();
15501550
for (&item, &count) in counts.iter() {
1551-
if count <= 0 {
1551+
if count == 0 {
15521552
return TestResult::failed();
15531553
}
15541554
if count != nums.iter().filter(|&x| x == item).count() {

0 commit comments

Comments
 (0)