Skip to content

Commit

Permalink
fix: rename Len::len -> Len::length to avoid unrelated clippy lint
Browse files Browse the repository at this point in the history
  • Loading branch information
huitseeker committed Jul 25, 2023
1 parent c6a6fd3 commit 131c1c1
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/provider/pedersen.rs
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ pub struct CommitmentKey<G: Group> {
}

impl<G: Group> Len for CommitmentKey<G> {
fn len(&self) -> usize {
fn length(&self) -> usize {
self.ck.len()
}
}
Expand Down
2 changes: 1 addition & 1 deletion src/spartan/ppsnark.rs
Original file line number Diff line number Diff line change
Expand Up @@ -930,7 +930,7 @@ impl<G: Group, EE: EvaluationEngineTrait<G, CE = G::CE>> RelaxedR1CSSNARKTrait<G
S: &R1CSShape<G>,
) -> Result<(Self::ProverKey, Self::VerifierKey), NovaError> {
// check the provided commitment key meets minimal requirements
assert!(ck.len() >= Self::commitment_key_floor()(S));
assert!(ck.length() >= Self::commitment_key_floor()(S));
let (pk_ee, vk_ee) = EE::setup(ck);

// pad the R1CS matrices
Expand Down
2 changes: 1 addition & 1 deletion src/traits/commitment.rs
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ pub trait CommitmentTrait<G: Group>:
/// Note this does not impose any memory representation contraints on the structure.
pub trait Len {
/// Returns the length of the structure.
fn len(&self) -> usize;
fn length(&self) -> usize;
}

/// A trait that ties different pieces of the commitment generation together
Expand Down

0 comments on commit 131c1c1

Please sign in to comment.