clippy: zk-token-sdk lints (#34633)

This commit is contained in:
Brooks 2024-01-02 22:01:42 -05:00 committed by GitHub
parent 1bb2f55235
commit 59dd007899
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 4 deletions

View File

@ -59,10 +59,10 @@ impl BatchedRangeProofContext {
}
fn new(
commitments: &Vec<&PedersenCommitment>,
amounts: &Vec<u64>,
bit_lengths: &Vec<usize>,
openings: &Vec<&PedersenOpening>,
commitments: &[&PedersenCommitment],
amounts: &[u64],
bit_lengths: &[usize],
openings: &[&PedersenOpening],
) -> Result<Self, ProofGenerationError> {
// the number of commitments is capped at 8
let num_commitments = commitments.len();