Skip to content

Commit ac671e5

Browse files
committed
halo2_proofs: Fix clippy lints
1 parent 6530827 commit ac671e5

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

halo2_proofs/src/poly/multiopen.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -107,9 +107,9 @@ impl<'r, 'params: 'r, C: CurveAffine> Eq for CommitmentReference<'r, 'params, C>
107107

108108
impl<'r, 'params: 'r, C: CurveAffine> Hash for CommitmentReference<'r, 'params, C> {
109109
fn hash<H: std::hash::Hasher>(&self, state: &mut H) {
110-
match self {
111-
&CommitmentReference::Commitment(a) => std::ptr::hash(a, state),
112-
&CommitmentReference::MSM(a) => std::ptr::hash(a, state),
110+
match *self {
111+
CommitmentReference::Commitment(a) => std::ptr::hash(a, state),
112+
CommitmentReference::MSM(a) => std::ptr::hash(a, state),
113113
}
114114
}
115115
}

halo2_proofs/src/poly/multiopen/prover.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ where
108108

109109
let x_4: ChallengeX4<_> = transcript.squeeze_challenge_scalar();
110110

111-
let (p_poly, p_poly_blind) = q_polys.into_iter().zip(q_blinds.into_iter()).fold(
111+
let (p_poly, p_poly_blind) = q_polys.into_iter().zip(q_blinds).fold(
112112
(q_prime_poly, q_prime_blind),
113113
|(q_prime_poly, q_prime_blind), (poly, blind)| {
114114
(

halo2_proofs/src/poly/multiopen/verifier.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ where
3636
let x_2: ChallengeX2<_> = transcript.squeeze_challenge_scalar();
3737

3838
let (commitment_map, point_sets) =
39-
construct_intermediate_sets(queries).ok_or_else(|| Error::OpeningError)?;
39+
construct_intermediate_sets(queries).ok_or(Error::OpeningError)?;
4040

4141
// Compress the commitments and expected evaluations at x together.
4242
// using the challenge x_1

0 commit comments

Comments
 (0)