Skip to content

Commit 89a6443

Browse files
Avoid using try_into when is not needed
1 parent 64250ed commit 89a6443

File tree

1 file changed

+2
-4
lines changed
  • aggregation_mode/src/backend

1 file changed

+2
-4
lines changed

aggregation_mode/src/backend/mod.rs

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -107,14 +107,12 @@ impl ProofAggregator {
107107
let sp1_chunk_aggregator_vk_hash_bytes: Bytes =
108108
hex::decode(config.sp1_chunk_aggregator_vk_hash.clone())
109109
.expect("Failed to decode SP1 chunk aggregator VK hash")
110-
.try_into()
111-
.expect("VK hash is not 32 bytes");
110+
.into();
112111

113112
let risc0_chunk_aggregator_image_id_bytes: Bytes =
114113
hex::decode(config.risc0_chunk_aggregator_image_id.clone())
115114
.expect("Failed to decode Risc0 chunk aggregator image id")
116-
.try_into()
117-
.expect("Risc0 image id is not 32 bytes");
115+
.into();
118116

119117
Self {
120118
engine,

0 commit comments

Comments
 (0)