mirror of
https://github.com/hinto-janai/cuprate.git
synced 2024-12-22 11:39:30 +00:00
clippy
This commit is contained in:
parent
3664e2f794
commit
f7f9063890
2 changed files with 2 additions and 3 deletions
|
@ -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;
|
||||
|
||||
|
|
|
@ -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<_>>()?;
|
||||
|
||||
|
|
Loading…
Reference in a new issue