Skip to content

Commit d1feb82

Browse files
committed
clippy
1 parent 7a04ab1 commit d1feb82

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

crates/ff_ext/src/wrapper.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,9 +27,9 @@ impl<const N: usize, T: Clone, P: Permutation<[T; N]> + Clone> Permutation<Vec<T
2727
assert_eq!(input.len(), N, "Input vector must be of length {}", N);
2828
let mut array = from_fn(|i| input[i].clone());
2929
self.inner.permute_mut(&mut array);
30-
for i in 0..N {
31-
input[i] = array[i].clone();
32-
}
30+
input.iter_mut().zip(array).for_each(|(i, a)| {
31+
*i = a;
32+
});
3333
}
3434
}
3535
impl<const N: usize, T: Clone, P: Permutation<[T; N]> + Clone> Permutation<[T; N]>

0 commit comments

Comments
 (0)