From 98fa44d99e784e62f5c25bdd4e9976d2cbfa204c Mon Sep 17 00:00:00 2001 From: Rej Ect <99460023+rejected-l@users.noreply.github.com> Date: Tue, 10 Mar 2026 01:30:53 +0100 Subject: [PATCH] fix(stages): set block_range in with_block_range (#22800) --- crates/stages/types/src/checkpoints.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/crates/stages/types/src/checkpoints.rs b/crates/stages/types/src/checkpoints.rs index 4f62cdcb25..19134c2f1e 100644 --- a/crates/stages/types/src/checkpoints.rs +++ b/crates/stages/types/src/checkpoints.rs @@ -406,7 +406,9 @@ impl StageCheckpoint { } _ => return self, }); - _ = self.stage_checkpoint.map(|mut checkpoint| checkpoint.set_block_range(from, to)); + if let Some(ref mut checkpoint) = self.stage_checkpoint { + checkpoint.set_block_range(from, to); + } self }