Use stable if matches! instead of if let match guard

`if let` guards are nightly-only (rust-lang/rust#51114), causing
`error[E0658]` and a CI `check-code` failure. Replace with the stable
`if matches!(...)` form suggested by rustc.
This commit is contained in:
dapplion
2026-04-30 00:08:35 +02:00
parent e742d0b4f1
commit ce00ae2dc7

View File

@@ -983,8 +983,10 @@ impl<T: BeaconChainTypes> NetworkBeaconProcessor<T> {
);
}
Err(FetchEngineBlobError::BlobProcessingError(e))
if let BlockOrEnvelopeError::BlockError(BlockError::DuplicateFullyImported(..)) =
*e =>
if matches!(
*e,
BlockOrEnvelopeError::BlockError(BlockError::DuplicateFullyImported(..))
) =>
{
debug!(
%block_root,