chore: make clippy happy (#11439)

This commit is contained in:
Matthias Seitz
2024-10-02 21:19:13 +02:00
committed by GitHub
parent 5ec448ef94
commit 70d498d296
9 changed files with 14 additions and 13 deletions

View File

@ -945,7 +945,7 @@ where
let safe = self
.blockchain
.find_block_by_hash(safe_block_hash, BlockSource::Any)?
.ok_or_else(|| ProviderError::UnknownBlockHash(safe_block_hash))?;
.ok_or(ProviderError::UnknownBlockHash(safe_block_hash))?;
self.blockchain.set_safe(SealedHeader::new(safe.header, safe_block_hash));
}
Ok(())
@ -965,7 +965,7 @@ where
let finalized = self
.blockchain
.find_block_by_hash(finalized_block_hash, BlockSource::Any)?
.ok_or_else(|| ProviderError::UnknownBlockHash(finalized_block_hash))?;
.ok_or(ProviderError::UnknownBlockHash(finalized_block_hash))?;
self.blockchain.finalize_block(finalized.number)?;
self.blockchain
.set_finalized(SealedHeader::new(finalized.header, finalized_block_hash));