From f8efe727cfcc9d182a1183fa6cc678a3197601a3 Mon Sep 17 00:00:00 2001 From: Al-Kindi-0 <82364884+Al-Kindi-0@users.noreply.github.com> Date: Fri, 13 Sep 2024 10:36:56 +0200 Subject: [PATCH] fix: clippy --- stdlib/tests/crypto/fri/verifier_fri_e2f4.rs | 2 +- stdlib/tests/crypto/stark/verifier_recursive/channel.rs | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/stdlib/tests/crypto/fri/verifier_fri_e2f4.rs b/stdlib/tests/crypto/fri/verifier_fri_e2f4.rs index 85a73faf7..a16d6b0f6 100644 --- a/stdlib/tests/crypto/fri/verifier_fri_e2f4.rs +++ b/stdlib/tests/crypto/fri/verifier_fri_e2f4.rs @@ -413,7 +413,7 @@ impl UnBatch for MidenFriVerifierChannel(&query); + let x = group_slice_elements::(query); let leaves: Vec = x.iter().map(|row| MidenHasher::hash_elements(row)).collect(); let unbatched_proof = layer_proof.into_openings(&leaves, &folded_positions).unwrap(); diff --git a/stdlib/tests/crypto/stark/verifier_recursive/channel.rs b/stdlib/tests/crypto/stark/verifier_recursive/channel.rs index 45b74cf9c..74e712b32 100644 --- a/stdlib/tests/crypto/stark/verifier_recursive/channel.rs +++ b/stdlib/tests/crypto/stark/verifier_recursive/channel.rs @@ -247,7 +247,7 @@ impl VerifierChannel { let layer_proof = layer_proofs.remove(0); - let x = group_slice_elements::(&query); + let x = group_slice_elements::(query); let leaves: Vec = x.iter().map(|row| Rpo256::hash_elements(row)).collect(); let unbatched_proof = layer_proof.into_openings(&leaves, &folded_positions).unwrap(); @@ -431,7 +431,7 @@ pub fn unbatch_to_partial_mt( queries: Vec>, proof: BatchMerkleProof, ) -> (PartialMerkleTree, Vec<(RpoDigest, Vec)>) { - let leaves: Vec = queries.iter().map(|row| Rpo256::hash_elements(&row)).collect(); + let leaves: Vec = 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();