mirror of
https://github.com/sigp/lighthouse.git
synced 2026-05-30 12:47:05 +00:00
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:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user