Enable clippy's equatable_if_let linter (#7221)

This commit is contained in:
Justin Traglia
2024-03-19 09:32:43 -05:00
committed by GitHub
parent 170306d3bd
commit c108a2476c
11 changed files with 21 additions and 17 deletions

View File

@ -349,7 +349,7 @@ where
// is stripped from the transaction and not included in a block.
// check if the blob is in the store, if it's included we previously validated
// it and inserted it
if let Ok(true) = self.blob_store.contains(*transaction.hash()) {
if matches!(self.blob_store.contains(*transaction.hash()), Ok(true)) {
// validated transaction is already in the store
} else {
return TransactionValidationOutcome::Invalid(