Also included clippy fixes introduced by new nightly

This commit is contained in:
BGluth 2023-09-07 13:33:08 -06:00
parent 6d3d2cb283
commit 4716fe7db4
2 changed files with 3 additions and 3 deletions

View File

@ -136,7 +136,7 @@ fn fri_proof_of_work<F: RichField + Extendable<D>, C: GenericConfig<D, F = F>, c
// obtaining our duplex's post-state which contains the PoW response. // obtaining our duplex's post-state which contains the PoW response.
let mut duplex_intermediate_state = challenger.sponge_state; let mut duplex_intermediate_state = challenger.sponge_state;
let witness_input_pos = challenger.input_buffer.len(); 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()) let pow_witness = (0..=F::NEG_ONE.to_canonical_u64())
.into_par_iter() .into_par_iter()

View File

@ -332,8 +332,8 @@ mod tests {
// These are mostly arbitrary, but we want to test some rounds with enough inputs/outputs to // These are mostly arbitrary, but we want to test some rounds with enough inputs/outputs to
// trigger multiple absorptions/squeezes. // trigger multiple absorptions/squeezes.
let num_inputs_per_round = vec![2, 5, 3]; let num_inputs_per_round = [2, 5, 3];
let num_outputs_per_round = vec![1, 2, 4]; let num_outputs_per_round = [1, 2, 4];
// Generate random input messages. // Generate random input messages.
let inputs_per_round: Vec<Vec<F>> = num_inputs_per_round let inputs_per_round: Vec<Vec<F>> = num_inputs_per_round