Skip to content

Commit

Permalink
zal: fix clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
mratsim committed Feb 23, 2024
1 parent 0d35bf8 commit 61a06ed
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions halo2_backend/src/plonk/lookup/prover.rs
Original file line number Diff line number Diff line change
Expand Up @@ -169,6 +169,7 @@ impl<C: CurveAffine> Permuted<C> {
/// grand product polynomial over the lookup. The grand product polynomial
/// is used to populate the Product<C> struct. The Product<C> struct is

Check warning on line 170 in halo2_backend/src/plonk/lookup/prover.rs

View workflow job for this annotation

GitHub Actions / Intra-doc links

unclosed HTML tag `C`

Check warning on line 170 in halo2_backend/src/plonk/lookup/prover.rs

View workflow job for this annotation

GitHub Actions / Intra-doc links

unclosed HTML tag `C`
/// added to the Lookup and finally returned by the method.
#[allow(clippy::too_many_arguments)]
pub(in crate::plonk) fn commit_product<
'params,
P: Params<'params, C>,
Expand Down
4 changes: 2 additions & 2 deletions halo2_backend/src/poly/ipa/commitment/prover.rs
Original file line number Diff line number Diff line change
Expand Up @@ -112,8 +112,8 @@ pub fn create_proof_with_engine<
let value_r_j = compute_inner_product(&p_prime[0..half], &b[half..]);
let l_j_randomness = C::Scalar::random(&mut rng);
let r_j_randomness = C::Scalar::random(&mut rng);
let l_j = l_j + &engine.msm(&[value_l_j * z, l_j_randomness], &[params.u, params.w]);
let r_j = r_j + &engine.msm(&[value_r_j * z, r_j_randomness], &[params.u, params.w]);
let l_j = l_j + engine.msm(&[value_l_j * z, l_j_randomness], &[params.u, params.w]);
let r_j = r_j + engine.msm(&[value_r_j * z, r_j_randomness], &[params.u, params.w]);
let l_j = l_j.to_affine();
let r_j = r_j.to_affine();

Expand Down

0 comments on commit 61a06ed

Please sign in to comment.