We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a3b9e42 commit 2fcef68Copy full SHA for 2fcef68
tests/quick.rs
@@ -721,7 +721,7 @@ quickcheck! {
721
722
assert_eq!(expected_first, curr_perm);
723
724
- while let Some(next_perm) = perms.next() {
+ for next_perm in perms {
725
assert!(
726
next_perm > curr_perm,
727
"next perm isn't greater-than current; next_perm={:?} curr_perm={:?} n={}",
@@ -1602,7 +1602,7 @@ quickcheck! {
1602
1603
fn is_fused<I: Iterator>(mut it: I) -> bool
1604
{
1605
- while let Some(_) = it.next() {}
+ for _ in it.by_ref() {}
1606
for _ in 0..10{
1607
if it.next().is_some(){
1608
return false;
0 commit comments