Skip to content

Commit

Permalink
chore: Appease Clippy-sama
Browse files Browse the repository at this point in the history
  • Loading branch information
netrome committed Feb 19, 2025
1 parent 7622fe9 commit 870c09e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions crates/proof_system/global_merkle_root/storage/src/update.rs
Original file line number Diff line number Diff line change
Expand Up @@ -451,13 +451,13 @@ where
let new_bytecode = tx
.witnesses()
.get(witness_index)
.ok_or_else(|| InvalidBlock::MissingWitness(witness_index))?;
.ok_or(InvalidBlock::MissingWitness(witness_index))?;

bytecode.extend_from_slice(new_bytecode.as_ref());

let new_uploaded_subsections_number = uploaded_subsections_number
.checked_add(1)
.ok_or_else(|| InvalidBlock::SubsectionNumberOverflow)?;
.ok_or(InvalidBlock::SubsectionNumberOverflow)?;

let new_uploaded_bytecode =
if new_uploaded_subsections_number == tx.body().subsections_number {
Expand Down Expand Up @@ -488,7 +488,7 @@ where
let blob = tx
.witnesses()
.get(witness_index)
.ok_or_else(|| InvalidBlock::MissingWitness(witness_index))?;
.ok_or(InvalidBlock::MissingWitness(witness_index))?;

tracing::debug!("storing blob");
self.storage
Expand Down

0 comments on commit 870c09e

Please sign in to comment.