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 <noreply@anthropic.com>
This commit is contained in:
Brandon Thomas
2026-10-10 12:45:00 -04:00
co-authored by Claude Opus 5.5
parent c975b5dc75
commit e8ec40da8b
+2 -2
View File
@@ -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,