chore: clippy (#25)

This commit is contained in:
Bjerg
2022-10-09 10:30:46 +02:00
committed by GitHub
parent ffdc374edb
commit 401cd3ec34

View File

@ -19,6 +19,6 @@ pub trait PoolClient: Send + Sync + TransactionValidator {
/// was found
fn ensure_block_number(&self, block_id: &BlockID) -> PoolResult<U64> {
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)))
}
}