chore: make clippy happy (#11408)

This commit is contained in:
Matthias Seitz
2024-10-02 10:09:44 +02:00
committed by GitHub
parent c6529a830d
commit 7cec526370
6 changed files with 12 additions and 10 deletions

View File

@ -120,7 +120,7 @@ impl<N: ProviderNodeTypes> BlockchainProvider<N> {
let best: ChainInfo = provider.chain_info()?;
let latest_header = provider
.header_by_number(best.best_number)?
.ok_or(ProviderError::HeaderNotFound(best.best_number.into()))?;
.ok_or_else(|| ProviderError::HeaderNotFound(best.best_number.into()))?;
let finalized_header = provider
.last_finalized_block_number()?