Skip to content

Commit

Permalink
Fix clippy::never_loop
Browse files Browse the repository at this point in the history
  • Loading branch information
JoeyBF committed Sep 19, 2023
1 parent 908e35a commit 17c98f7
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions ext/crates/fp/src/vector/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -462,9 +462,7 @@ mod test {

fn test_iter_nonzero_empty(p: ValidPrime) {
let v = FpVector::new(p, 0);
for (_, _) in v.iter_nonzero() {
panic!();
}
assert_eq!(v.iter_nonzero().next(), None);
}

fn test_iter_nonzero_slice(p: ValidPrime) {
Expand Down

0 comments on commit 17c98f7

Please sign in to comment.