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 }