Skip to content

Commit

Permalink
clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
morganthomas committed Apr 30, 2024
1 parent 2c1e298 commit 6c39859
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 8 deletions.
1 change: 0 additions & 1 deletion dft/src/radix_2_bowers.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ use p3_field::{Field, Powers, TwoAdicField};
use p3_matrix::dense::{RowMajorMatrix, RowMajorMatrixViewMut};
use p3_matrix::util::reverse_matrix_index_bits;
use p3_matrix::Matrix;
use p3_maybe_rayon::prelude::*;
use p3_util::{log2_strict_usize, reverse_bits, reverse_slice_index_bits};

use crate::butterflies::{
Expand Down
2 changes: 1 addition & 1 deletion fri/src/prover.rs
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ use p3_maybe_rayon::prelude::*;
use tracing::{info_span, instrument};

use crate::fold_even_odd::fold_even_odd;
use crate::{CommitPhaseProofStep, FriConfig, FriProof, QueryProof, TwoAdicFriPcsGenericConfig};
use crate::{CommitPhaseProofStep, FriConfig, FriProof, QueryProof};

#[instrument(name = "FRI prover", skip_all)]
pub fn prove<F, M, Challenger>(
Expand Down
12 changes: 6 additions & 6 deletions fri/src/two_adic_pcs.rs
Original file line number Diff line number Diff line change
Expand Up @@ -182,8 +182,8 @@ where
})
.collect()
});
let commitment = self.mmcs.commit(ldes);
commitment

self.mmcs.commit(ldes)
}
}

Expand Down Expand Up @@ -265,8 +265,8 @@ where
let mut num_reduced = [0; 32];

let ys_outer: Vec<(&Self::ProverData, Vec<&Vec<C::Challenge>>)> = (*prover_data_and_points)
.into_iter()
.map(|(pd, cs)| (*pd, (*cs).into_iter().collect::<Vec<&Vec<C::Challenge>>>()))
.iter()
.map(|(pd, cs)| (*pd, (*cs).iter().collect::<Vec<&Vec<C::Challenge>>>()))
.collect();

let ys_outer: Vec<Vec<Vec<Vec<C::Challenge>>>> = ys_outer
Expand Down Expand Up @@ -298,7 +298,7 @@ where
})
.collect();

for (i, (data, points)) in prover_data_and_points.into_iter().enumerate() {
for (i, (data, points)) in prover_data_and_points.iter().enumerate() {
let mats = self.mmcs.get_matrices(data);
let opened_values_for_round = all_opened_values.pushed_mut(vec![]);
for (j, (mat, points_for_mat)) in izip!(mats, *points).enumerate() {
Expand All @@ -308,7 +308,7 @@ where
debug_assert_eq!(reduced_opening_for_log_height.len(), mat.height());

let opened_values_for_mat = opened_values_for_round.pushed_mut(vec![]);
for (k, &point) in points_for_mat.into_iter().enumerate() {
for (k, &point) in points_for_mat.iter().enumerate() {
let _guard =
info_span!("reduce matrix quotient", dims = %mat.dimensions()).entered();

Expand Down

0 comments on commit 6c39859

Please sign in to comment.