Skip to content

Commit

Permalink
chore: nicer fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
kylezs committed Nov 10, 2023
1 parent 1b23968 commit b0d5323
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions engine/src/eth/rpc.rs
Original file line number Diff line number Diff line change
Expand Up @@ -172,13 +172,13 @@ impl EthRpcApi for EthRpcClient {
/// - Request succeeds, but doesn't return a block
async fn block(&self, block_number: U64) -> Result<Block<H256>> {
self.signer.get_block(block_number).await?.ok_or_else(|| {
anyhow!("Getting ETH block for block number {} returned None", block_number)
anyhow!("Getting ETH block for block number {block_number} returned None")
})
}

async fn block_with_txs(&self, block_number: U64) -> Result<Block<Transaction>> {
self.signer.get_block_with_txs(block_number).await?.ok_or_else(|| {
anyhow!("Getting ETH block with txs for block number {} returned None", block_number)
anyhow!("Getting ETH block with txs for block number {block_number} returned None")
})
}

Expand All @@ -195,7 +195,7 @@ impl EthRpcApi for EthRpcClient {
self.signer
.get_transaction(tx_hash)
.await?
.ok_or_else(|| anyhow!("Getting ETH transaction for tx hash {} returned None", tx_hash))
.ok_or_else(|| anyhow!("Getting ETH transaction for tx hash {tx_hash} returned None"))
}
}

Expand Down

0 comments on commit b0d5323

Please sign in to comment.