Skip to content

Commit

Permalink
address clippy warnings (#336)
Browse files Browse the repository at this point in the history
  • Loading branch information
srinathsetty authored Dec 4, 2024
1 parent ac8b057 commit 8136faa
Show file tree
Hide file tree
Showing 5 changed files with 4 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/circuit.rs
Original file line number Diff line number Diff line change
Expand Up @@ -272,7 +272,7 @@ impl<'a, E: Engine, SC: StepCircuit<E::Base>> NovaAugmentedCircuit<'a, E, SC> {
}
}

impl<'a, E: Engine, SC: StepCircuit<E::Base>> NovaAugmentedCircuit<'a, E, SC> {
impl<E: Engine, SC: StepCircuit<E::Base>> NovaAugmentedCircuit<'_, E, SC> {
/// synthesize circuit giving constraint system
pub fn synthesize<CS: ConstraintSystem<<E as Engine>::Base>>(
self,
Expand Down
2 changes: 1 addition & 1 deletion src/provider/hyperkzg.rs
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ where
}
}

impl<'a, 'b, E: Engine> Mul<&'b E::Scalar> for &'a Commitment<E>
impl<'b, E: Engine> Mul<&'b E::Scalar> for &'_ Commitment<E>
where
E::GE: PairingGroup,
{
Expand Down
2 changes: 1 addition & 1 deletion src/provider/pedersen.rs
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ where
}
}

impl<'a, 'b, E: Engine> Mul<&'b E::Scalar> for &'a Commitment<E>
impl<'b, E: Engine> Mul<&'b E::Scalar> for &'_ Commitment<E>
where
E::GE: DlogGroup,
{
Expand Down
2 changes: 1 addition & 1 deletion src/r1cs/sparse.rs
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ pub struct Iter<'a, F: PrimeField> {
nnz: usize,
}

impl<'a, F: PrimeField> Iterator for Iter<'a, F> {
impl<F: PrimeField> Iterator for Iter<'_, F> {
type Item = (usize, usize, F);

fn next(&mut self) -> Option<Self::Item> {
Expand Down
1 change: 0 additions & 1 deletion src/spartan/macros.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 8136faa

Please sign in to comment.