From 4716fe7db41f6151de3b5dd0784f8e7d0b50d284 Mon Sep 17 00:00:00 2001 From: BGluth Date: Thu, 7 Sep 2023 13:33:08 -0600 Subject: [PATCH] Also included clippy fixes introduced by new nightly --- plonky2/src/fri/prover.rs | 2 +- plonky2/src/iop/challenger.rs | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/plonky2/src/fri/prover.rs b/plonky2/src/fri/prover.rs index 28cd1977..378f1dae 100644 --- a/plonky2/src/fri/prover.rs +++ b/plonky2/src/fri/prover.rs @@ -136,7 +136,7 @@ fn fri_proof_of_work, C: GenericConfig, c // obtaining our duplex's post-state which contains the PoW response. let mut duplex_intermediate_state = challenger.sponge_state; let witness_input_pos = challenger.input_buffer.len(); - duplex_intermediate_state.set_from_iter(challenger.input_buffer.clone().into_iter(), 0); + duplex_intermediate_state.set_from_iter(challenger.input_buffer.clone(), 0); let pow_witness = (0..=F::NEG_ONE.to_canonical_u64()) .into_par_iter() diff --git a/plonky2/src/iop/challenger.rs b/plonky2/src/iop/challenger.rs index d1751d38..9df49996 100644 --- a/plonky2/src/iop/challenger.rs +++ b/plonky2/src/iop/challenger.rs @@ -332,8 +332,8 @@ mod tests { // These are mostly arbitrary, but we want to test some rounds with enough inputs/outputs to // trigger multiple absorptions/squeezes. - let num_inputs_per_round = vec![2, 5, 3]; - let num_outputs_per_round = vec![1, 2, 4]; + let num_inputs_per_round = [2, 5, 3]; + let num_outputs_per_round = [1, 2, 4]; // Generate random input messages. let inputs_per_round: Vec> = num_inputs_per_round