Skip to content

Commit 6a0ed0b

Browse files
committed
fix: run cargo clippy
1 parent a19b5a6 commit 6a0ed0b

File tree

3 files changed

+6
-5
lines changed

3 files changed

+6
-5
lines changed

aggregation_mode/src/backend/merkle_tree.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,8 @@ pub fn compute_proofs_merkle_root(proofs: &[AlignedProof]) -> ([u8; 32], Vec<[u8
1818
root = root
1919
.chunks(2)
2020
.map(|chunk| match chunk {
21-
[a, b] => combine_hashes(&a, &b),
22-
[a] => combine_hashes(&a, &a),
21+
[a, b] => combine_hashes(a, b),
22+
[a] => combine_hashes(a, a),
2323
_ => panic!("Unexpected chunk size in leaves"),
2424
})
2525
.collect()

aggregation_mode/src/backend/mod.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ impl ProofAggregator {
9999
.await
100100
.map_err(AggregatedProofSubmissionError::FetchingProofs)?;
101101

102-
if proofs.len() == 0 {
102+
if proofs.is_empty() {
103103
warn!("No proofs collected, skipping aggregation...");
104104
return Ok(());
105105
}
@@ -114,8 +114,8 @@ impl ProofAggregator {
114114
// only SP1 compressed proofs are supported
115115
let proofs = proofs
116116
.into_iter()
117-
.filter_map(|proof| match proof {
118-
AlignedProof::SP1(proof) => Some(proof),
117+
.map(|proof| match proof {
118+
AlignedProof::SP1(proof) => proof,
119119
})
120120
.collect();
121121

aggregation_mode/src/backend/types.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
#![allow(clippy::too_many_arguments)]
12
use alloy::{
23
network::EthereumWallet,
34
providers::{

0 commit comments

Comments
 (0)