Merge pull request #141 from zcash/more-clippy-lints

More clippy lint fixes
This commit is contained in:
ebfull 2021-01-14 09:11:01 -07:00 committed by GitHub
commit 968ac8b0d4
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View file

@ -212,7 +212,7 @@ impl<C: CurveAffine> super::ProvingKey<C> {
.collect()
}
fn open<'a>(&'a self, x: ChallengeX<C>) -> impl Iterator<Item = ProverQuery<'a, C>> + Clone {
fn open(&self, x: ChallengeX<C>) -> impl Iterator<Item = ProverQuery<'_, C>> + Clone {
self.polys.iter().map(move |poly| ProverQuery {
point: *x,
poly,

View file

@ -136,7 +136,7 @@ impl<'a, C: CurveAffine> Query<C::Scalar> for ProverQuery<'a, C> {
fn get_point(&self) -> C::Scalar {
self.point
}
fn get_eval(&self) -> () {}
fn get_eval(&self) {}
fn get_commitment(&self) -> Self::Commitment {
PolynomialPointer {
poly: self.poly,