From ead6dc553ae11d224bf71d9586f5bd86fa41e982 Mon Sep 17 00:00:00 2001 From: Carl Date: Sun, 15 Mar 2020 22:50:11 -0700 Subject: [PATCH] If let --- core/src/replay_stage.rs | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/core/src/replay_stage.rs b/core/src/replay_stage.rs index 6428ec0a51..3f46b95fa0 100644 --- a/core/src/replay_stage.rs +++ b/core/src/replay_stage.rs @@ -630,10 +630,7 @@ impl ReplayStage { // errors related to the slot being purged let slot = bank.slot(); warn!("Fatal replay error in slot: {}, err: {:?}", slot, err); - if matches!( - err, - BlockstoreProcessorError::InvalidBlock(BlockError::InvalidTickCount) - ) { + if let BlockstoreProcessorError::InvalidBlock(BlockError::InvalidTickCount) = err { datapoint_info!( "replay-stage-mark_dead_slot", ("error", format!("error: {:?}", err), String),