Skip to content

Commit

Permalink
Fix clippy warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
oskarth committed Jul 27, 2023
1 parent fae1488 commit 9081556
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions src/hypercube.rs
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,11 @@ mod tests {
vec![F::ONE, F::ONE, F::ONE],
];

for i in 0..hypercube.max as usize {
for (i, _) in expected_outputs
.iter()
.enumerate()
.take(hypercube.max as usize)
{
assert_eq!(hypercube.evaluate_at_big(i), expected_outputs[i]);
}
}
Expand Down Expand Up @@ -152,7 +156,11 @@ mod tests {
vec![F::ONE, F::ONE, F::ONE],
];

for i in 0..hypercube.max as usize {
for (i, _) in expected_outputs
.iter()
.enumerate()
.take(hypercube.max as usize)
{
assert_eq!(hypercube.evaluate_at_little(i), expected_outputs[i]);
}
}
Expand Down

0 comments on commit 9081556

Please sign in to comment.