From e9d3e1fcd422fcd1ea276c0704767b958c39efdb Mon Sep 17 00:00:00 2001 From: joshieDo <93316087+joshieDo@users.noreply.github.com> Date: Sun, 22 Sep 2024 16:27:43 +0100 Subject: [PATCH] fmt --- crates/cli/commands/src/db/stats.rs | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/crates/cli/commands/src/db/stats.rs b/crates/cli/commands/src/db/stats.rs index 4b894d1dfb85..cfa395ac932d 100644 --- a/crates/cli/commands/src/db/stats.rs +++ b/crates/cli/commands/src/db/stats.rs @@ -267,8 +267,10 @@ impl Command { .1 .zip(last_ranges.1) .map(|(first, last)| SegmentRangeInclusive::new(first.start(), last.end())) - .or_else(|| last_ranges.1.map(|last| SegmentRangeInclusive::new(0, last.end()))); - + .or_else(|| { + last_ranges.1.map(|last| SegmentRangeInclusive::new(0, last.end())) + }); + let mut row = Row::new(); row.add_cell(Cell::new(segment)) .add_cell(Cell::new(format!("{block_range}")))