From ce00ae2dc7bfaa1f92473cec94cefc930f6a4fd0 Mon Sep 17 00:00:00 2001 From: dapplion <35266934+dapplion@users.noreply.github.com> Date: Thu, 30 Apr 2026 00:08:35 +0200 Subject: [PATCH] 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. --- beacon_node/network/src/network_beacon_processor/mod.rs | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/beacon_node/network/src/network_beacon_processor/mod.rs b/beacon_node/network/src/network_beacon_processor/mod.rs index 7a978548a7..c1980215d1 100644 --- a/beacon_node/network/src/network_beacon_processor/mod.rs +++ b/beacon_node/network/src/network_beacon_processor/mod.rs @@ -983,8 +983,10 @@ impl NetworkBeaconProcessor { ); } Err(FetchEngineBlobError::BlobProcessingError(e)) - if let BlockOrEnvelopeError::BlockError(BlockError::DuplicateFullyImported(..)) = - *e => + if matches!( + *e, + BlockOrEnvelopeError::BlockError(BlockError::DuplicateFullyImported(..)) + ) => { debug!( %block_root,