From e8ec40da8b9c99426254d5b97fdb07d6ecad9658 Mon Sep 17 00:00:00 2001 From: Brandon Thomas Date: Sat, 10 Oct 2026 12:45:00 -0400 Subject: [PATCH] Review fix-up: build test anchors with ..Anchor::default() Keeps the smooth round-trip test compiling as Anchor gains fields (e.g. #12's anchor mode). Co-Authored-By: Claude Opus 5.5 --- crates/xlsx/src/tests/smooth_roundtrip.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/crates/xlsx/src/tests/smooth_roundtrip.rs b/crates/xlsx/src/tests/smooth_roundtrip.rs index f3f4e391f..aa1c42791 100644 --- a/crates/xlsx/src/tests/smooth_roundtrip.rs +++ b/crates/xlsx/src/tests/smooth_roundtrip.rs @@ -22,7 +22,7 @@ fn smooth_line_setting_round_trips() { s.charts.push(Chart { id: 1, kind: ChartKind::Line, - anchor: Anchor { cell: gridcraft_core::CellRef::new(0, 3), dx: 0.0, dy: 0.0, width: 480.0, height: 300.0 }, + anchor: Anchor { cell: gridcraft_core::CellRef::new(0, 3), width: 480.0, height: 300.0, ..Anchor::default() }, title: Some("Straight Line".into()), series: vec![base_series.clone()], legend: LegendPos::Bottom, @@ -39,7 +39,7 @@ fn smooth_line_setting_round_trips() { s.charts.push(Chart { id: 2, kind: ChartKind::ScatterLines, - anchor: Anchor { cell: gridcraft_core::CellRef::new(15, 3), dx: 0.0, dy: 0.0, width: 480.0, height: 300.0 }, + anchor: Anchor { cell: gridcraft_core::CellRef::new(15, 3), width: 480.0, height: 300.0, ..Anchor::default() }, title: Some("Smooth Scatter".into()), series: vec![smooth_series], legend: LegendPos::Bottom,