Skip to content

Commit 85db268

Browse files
committed
chore: address clippy warnings
1 parent 65c6bfc commit 85db268

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

aggregation_mode/src/aggregators/risc0_aggregator.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ pub const RISC0_CHUNK_AGGREGATOR_PROGRAM_ID_BYTES: [u8; 32] = {
8181
impl Risc0ProofReceiptAndImageId {
8282
pub fn hash_image_id_and_public_inputs(&self) -> [u8; 32] {
8383
let mut hasher = Keccak256::new();
84-
hasher.update(&[AggregationModeProvingSystem::RISC0.id()]);
84+
hasher.update([AggregationModeProvingSystem::RISC0.id()]);
8585
hasher.update(self.image_id);
8686
hasher.update(self.public_inputs());
8787
hasher.finalize().into()

aggregation_mode/src/aggregators/sp1_aggregator.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ impl SP1ProofWithPubValuesAndElf {
6464

6565
pub fn hash_vk_and_pub_inputs(&self) -> [u8; 32] {
6666
let mut hasher = Keccak256::new();
67-
hasher.update(&[AggregationModeProvingSystem::SP1.id()]);
67+
hasher.update([AggregationModeProvingSystem::SP1.id()]);
6868
let vk_bytes = &self.vk.hash_bytes();
6969
hasher.update(vk_bytes);
7070
hasher.update(self.proof_with_pub_values.public_values.as_slice());

0 commit comments

Comments
 (0)