Skip to content

Commit 65c6bfc

Browse files
committed
chore: address clippy warnings
1 parent 937d086 commit 65c6bfc

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

crates/sdk/src/aggregation_layer/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ pub async fn is_proof_verified_on_chain(
130130
let res = contract_provider
131131
.verify_proof_inclusion(
132132
merkle_path,
133-
verification_data.proving_system_id().into(),
133+
verification_data.proving_system_id(),
134134
verification_data.program_id(),
135135
Bytes::from(verification_data.public_inputs().clone()),
136136
)

crates/sdk/src/aggregation_layer/types.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ impl AggregationModeVerificationData {
7070
match self {
7171
AggregationModeVerificationData::SP1 { vk, public_inputs } => {
7272
let mut hasher = Keccak256::new();
73-
hasher.update(&[self.proving_system_id()]);
73+
hasher.update([self.proving_system_id()]);
7474
hasher.update(vk);
7575
hasher.update(public_inputs);
7676
hasher.finalize().into()
@@ -80,7 +80,7 @@ impl AggregationModeVerificationData {
8080
public_inputs,
8181
} => {
8282
let mut hasher = Keccak256::new();
83-
hasher.update(&[self.proving_system_id()]);
83+
hasher.update([self.proving_system_id()]);
8484
hasher.update(image_id);
8585
hasher.update(public_inputs);
8686
hasher.finalize().into()

0 commit comments

Comments
 (0)