mirror of
https://github.com/hl-archive-node/nanoreth.git
synced 2025-12-06 10:59:55 +00:00
chore: clippy (#25)
This commit is contained in:
@ -19,6 +19,6 @@ pub trait PoolClient: Send + Sync + TransactionValidator {
|
|||||||
/// was found
|
/// was found
|
||||||
fn ensure_block_number(&self, block_id: &BlockID) -> PoolResult<U64> {
|
fn ensure_block_number(&self, block_id: &BlockID) -> PoolResult<U64> {
|
||||||
self.convert_block_id(block_id)
|
self.convert_block_id(block_id)
|
||||||
.and_then(|number| number.ok_or(PoolError::BlockNumberNotFound(*block_id)))
|
.and_then(|number| number.ok_or_else(|| PoolError::BlockNumberNotFound(*block_id)))
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user