From 3845a4f3eed1711f560feffa6dd4309669eca541 Mon Sep 17 00:00:00 2001 From: Srinath Setty Date: Wed, 4 Dec 2024 09:53:22 -0800 Subject: [PATCH] address clippy warnings --- src/circuit.rs | 2 +- src/provider/hyperkzg.rs | 2 +- src/provider/pedersen.rs | 2 +- src/r1cs/sparse.rs | 2 +- src/spartan/macros.rs | 1 - 5 files changed, 4 insertions(+), 5 deletions(-) diff --git a/src/circuit.rs b/src/circuit.rs index 337cdd16..150a27ea 100644 --- a/src/circuit.rs +++ b/src/circuit.rs @@ -272,7 +272,7 @@ impl<'a, E: Engine, SC: StepCircuit> NovaAugmentedCircuit<'a, E, SC> { } } -impl<'a, E: Engine, SC: StepCircuit> NovaAugmentedCircuit<'a, E, SC> { +impl> NovaAugmentedCircuit<'_, E, SC> { /// synthesize circuit giving constraint system pub fn synthesize::Base>>( self, diff --git a/src/provider/hyperkzg.rs b/src/provider/hyperkzg.rs index fcd034d2..4ee1f956 100644 --- a/src/provider/hyperkzg.rs +++ b/src/provider/hyperkzg.rs @@ -133,7 +133,7 @@ where } } -impl<'a, 'b, E: Engine> Mul<&'b E::Scalar> for &'a Commitment +impl<'b, E: Engine> Mul<&'b E::Scalar> for &'_ Commitment where E::GE: PairingGroup, { diff --git a/src/provider/pedersen.rs b/src/provider/pedersen.rs index 1ead7adb..92e8cd9a 100644 --- a/src/provider/pedersen.rs +++ b/src/provider/pedersen.rs @@ -114,7 +114,7 @@ where } } -impl<'a, 'b, E: Engine> Mul<&'b E::Scalar> for &'a Commitment +impl<'b, E: Engine> Mul<&'b E::Scalar> for &'_ Commitment where E::GE: DlogGroup, { diff --git a/src/r1cs/sparse.rs b/src/r1cs/sparse.rs index 075b158d..5ec86b0c 100644 --- a/src/r1cs/sparse.rs +++ b/src/r1cs/sparse.rs @@ -129,7 +129,7 @@ pub struct Iter<'a, F: PrimeField> { nnz: usize, } -impl<'a, F: PrimeField> Iterator for Iter<'a, F> { +impl Iterator for Iter<'_, F> { type Item = (usize, usize, F); fn next(&mut self) -> Option { diff --git a/src/spartan/macros.rs b/src/spartan/macros.rs index bab75e95..195285dd 100644 --- a/src/spartan/macros.rs +++ b/src/spartan/macros.rs @@ -14,7 +14,6 @@ /// /// println!("{:?}", res); // Output: [6, 9, 12] /// ``` - #[macro_export] macro_rules! zip_with { // no iterator projection specified: the macro assumes the arguments *are* iterators