From 811a8a139ad0b7b2eda57017c0f5c190914562e5 Mon Sep 17 00:00:00 2001 From: Brandon Thomas Date: Mon, 12 Oct 2026 23:33:10 -0400 Subject: [PATCH] Fix-up: rustfmt the area-chart label condition after merging the chart PRs Co-Authored-By: Claude Opus 5.5 --- crates/chart/src/render.rs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/crates/chart/src/render.rs b/crates/chart/src/render.rs index 78c5c98..f2f79dc 100644 --- a/crates/chart/src/render.rs +++ b/crates/chart/src/render.rs @@ -1001,7 +1001,10 @@ fn cartesian(ctx: &mut Ctx, chart: &Chart, data: &ChartData, area: Bx, horizonta top.push([c, vpos(t, &sc)]); base.push([c, vpos(b, &sc)]); // Source values (not stack totals), just above the top edge like the line labels. - if labels_on && sp.is_some() && let Some(v) = s.values.get(j).copied().flatten() { + if labels_on + && sp.is_some() + && let Some(v) = s.values.get(j).copied().flatten() + { area_labels.push((c, vpos(t, &sc) - 5.0, fmt.format(v, None))); } }