Skip to content

Commit

Permalink
Remove unused mutability. (#885)
Browse files Browse the repository at this point in the history
  • Loading branch information
ilyalesokhin-starkware authored Nov 17, 2024
1 parent 64270dc commit 884d161
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions crates/prover/src/core/pcs/prover.rs
Original file line number Diff line number Diff line change
Expand Up @@ -205,13 +205,13 @@ pub struct CommitmentTreeProver<B: BackendForChannel<MC>, MC: MerkleChannel> {

impl<B: BackendForChannel<MC>, MC: MerkleChannel> CommitmentTreeProver<B, MC> {
pub fn new(
mut polynomials: ColumnVec<CirclePoly<B>>,
polynomials: ColumnVec<CirclePoly<B>>,
log_blowup_factor: u32,
channel: &mut MC::C,
twiddles: &TwiddleTree<B>,
) -> Self {
let span = span!(Level::INFO, "Extension").entered();
let evaluations = B::evaluate_polynomials(&mut polynomials, log_blowup_factor, twiddles);
let evaluations = B::evaluate_polynomials(&polynomials, log_blowup_factor, twiddles);
span.exit();

let _span = span!(Level::INFO, "Merkle").entered();
Expand Down
2 changes: 1 addition & 1 deletion crates/prover/src/core/poly/circle/ops.rs
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ pub trait PolyOps: FieldOps<BaseField> + Sized {
) -> CircleEvaluation<Self, BaseField, BitReversedOrder>;

fn evaluate_polynomials(
polynomials: &mut ColumnVec<CirclePoly<Self>>,
polynomials: &ColumnVec<CirclePoly<Self>>,
log_blowup_factor: u32,
twiddles: &TwiddleTree<Self>,
) -> Vec<CircleEvaluation<Self, BaseField, BitReversedOrder>> {
Expand Down

0 comments on commit 884d161

Please sign in to comment.