Skip to content

Commit

Permalink
fix: clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
Al-Kindi-0 committed Sep 13, 2024
1 parent e90914d commit f8efe72
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion stdlib/tests/crypto/fri/verifier_fri_e2f4.rs
Original file line number Diff line number Diff line change
Expand Up @@ -413,7 +413,7 @@ impl UnBatch<QuadExt, MidenHasher> for MidenFriVerifierChannel<QuadExt, MidenHas

let layer_proof = layer_proofs.remove(0);

let x = group_slice_elements::<QuadExt, N>(&query);
let x = group_slice_elements::<QuadExt, N>(query);
let leaves: Vec<RpoDigest> =
x.iter().map(|row| MidenHasher::hash_elements(row)).collect();
let unbatched_proof = layer_proof.into_openings(&leaves, &folded_positions).unwrap();
Expand Down
4 changes: 2 additions & 2 deletions stdlib/tests/crypto/stark/verifier_recursive/channel.rs
Original file line number Diff line number Diff line change
Expand Up @@ -247,7 +247,7 @@ impl VerifierChannel {

let layer_proof = layer_proofs.remove(0);

let x = group_slice_elements::<QuadExt, N>(&query);
let x = group_slice_elements::<QuadExt, N>(query);
let leaves: Vec<RpoDigest> = x.iter().map(|row| Rpo256::hash_elements(row)).collect();
let unbatched_proof = layer_proof.into_openings(&leaves, &folded_positions).unwrap();

Expand Down Expand Up @@ -431,7 +431,7 @@ pub fn unbatch_to_partial_mt(
queries: Vec<Vec<Felt>>,
proof: BatchMerkleProof<Rpo256>,
) -> (PartialMerkleTree, Vec<(RpoDigest, Vec<Felt>)>) {
let leaves: Vec<RpoDigest> = queries.iter().map(|row| Rpo256::hash_elements(&row)).collect();
let leaves: Vec<RpoDigest> = queries.iter().map(|row| Rpo256::hash_elements(row)).collect();

let unbatched_proof = proof.into_openings(&leaves, &positions).unwrap();
let mut adv_key_map = Vec::new();
Expand Down

0 comments on commit f8efe72

Please sign in to comment.