Skip to content

Commit 168eaaa

Browse files
committed
fix clippy::manual_assert in tests
1 parent 6105224 commit 168eaaa

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

tests/adaptors_no_collect.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,4 +43,4 @@ fn combinations_no_collect() {
4343
#[test]
4444
fn combinations_with_replacement_no_collect() {
4545
no_collect_test(|iter| iter.combinations_with_replacement(5))
46-
}
46+
}

tests/quick.rs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -258,9 +258,7 @@ where
258258
let mut it = get_it();
259259

260260
for _ in 0..(counts.len() - 1) {
261-
if it.next().is_none() {
262-
panic!("Iterator shouldn't be finished, may not be deterministic");
263-
}
261+
assert!(it.next().is_some(), "Iterator shouldn't be finished, may not be deterministic");
264262
}
265263

266264
if it.next().is_none() {

0 commit comments

Comments
 (0)