Skip to content

Commit

Permalink
clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
hinto-janai committed Dec 17, 2024
1 parent 3664e2f commit f7f9063
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion storage/blockchain/src/ops/block.rs
Original file line number Diff line number Diff line change
Expand Up @@ -274,7 +274,7 @@ pub fn get_block_complete_entry_from_height(
tables: &impl TablesIter,
) -> Result<BlockCompleteEntry, RuntimeError> {
let (block_blob, miner_tx_idx, numb_non_miner_txs) =
get_block_blob_with_tx_indexes(&block_height, tables)?;
get_block_blob_with_tx_indexes(block_height, tables)?;

let first_tx_idx = miner_tx_idx + 1;

Expand Down
3 changes: 1 addition & 2 deletions storage/blockchain/src/service/read.rs
Original file line number Diff line number Diff line change
Expand Up @@ -264,8 +264,7 @@ fn block_complete_entries_by_height(
.map(|height| {
let tx_ro = tx_ro.get_or_try(|| env_inner.tx_ro())?;
let tables = get_tables!(env_inner, tx_ro, tables)?.as_ref();

Ok(get_block_complete_entry_from_height(&height, tables)?)
get_block_complete_entry_from_height(&height, tables)
})
.collect::<DbResult<_>>()?;

Expand Down

0 comments on commit f7f9063

Please sign in to comment.