Skip to content

Commit 30c23e7

Browse files
committed
fix clippy::redundant_pattern_matching in tests
1 parent 23936bf commit 30c23e7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/quick.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -258,12 +258,12 @@ where
258258
let mut it = get_it();
259259

260260
for _ in 0..(counts.len() - 1) {
261-
if let None = it.next() {
261+
if it.next().is_none() {
262262
panic!("Iterator shouldn't be finished, may not be deterministic");
263263
}
264264
}
265265

266-
if let None = it.next() {
266+
if it.next().is_none() {
267267
break 'outer;
268268
}
269269

0 commit comments

Comments
 (0)