mirror of
https://github.com/sigp/lighthouse.git
synced 2026-05-31 05:07:12 +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))
|
Err(FetchEngineBlobError::BlobProcessingError(e))
|
||||||
if let BlockOrEnvelopeError::BlockError(BlockError::DuplicateFullyImported(..)) =
|
if matches!(
|
||||||
*e =>
|
*e,
|
||||||
|
BlockOrEnvelopeError::BlockError(BlockError::DuplicateFullyImported(..))
|
||||||
|
) =>
|
||||||
{
|
{
|
||||||
debug!(
|
debug!(
|
||||||
%block_root,
|
%block_root,
|
||||||
|
|||||||
Reference in New Issue
Block a user