Skip to content

Commit b704451

Browse files
committed
fix clippy::absurd_extreme_comparisons in tests
1 parent 41aacfc commit b704451

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

0 commit comments

Comments
 (0)