Skip to content

Commit a3b9e42

Browse files
committed
fix clippy::absurd_extreme_comparisons in tests
1 parent 79206e8 commit a3b9e42

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
@@ -1555,7 +1555,7 @@ quickcheck! {
15551555
fn counts(nums: Vec<isize>) -> TestResult {
15561556
let counts = nums.iter().counts();
15571557
for (&item, &count) in counts.iter() {
1558-
if count <= 0 {
1558+
if count == 0 {
15591559
return TestResult::failed();
15601560
}
15611561
if count != nums.iter().filter(|&x| x == item).count() {

0 commit comments

Comments
 (0)