Skip to content

Commit

Permalink
style: avoid superfluous roundtrip through usize (#12946)
Browse files Browse the repository at this point in the history
  • Loading branch information
nagisa authored Feb 21, 2025
1 parent c6ee928 commit 338f706
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions core/primitives/src/utils.rs
Original file line number Diff line number Diff line change
Expand Up @@ -288,15 +288,15 @@ pub fn create_receipt_id_from_action_hash(
prev_block_hash: &CryptoHash,
block_hash: &CryptoHash,
block_height: BlockHeight,
receipt_index: usize,
receipt_index: u64,
) -> CryptoHash {
create_hash_upgradable(
protocol_version,
action_hash,
prev_block_hash,
block_hash,
block_height,
receipt_index as u64,
receipt_index,
)
}

Expand Down
2 changes: 1 addition & 1 deletion runtime/runtime/src/ext.rs
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,7 @@ impl<'a> External for RuntimeExt<'a> {
&self.prev_block_hash,
&self.last_block_hash,
self.block_height,
self.data_count as usize,
self.data_count,
);
self.data_count += 1;
data_id
Expand Down

0 comments on commit 338f706

Please # to comment.