From ee4bdbcd7d5396964e13142f309710519180d2e5 Mon Sep 17 00:00:00 2001 From: Harrison Booth <73434116+Harrison-Booth@users.noreply.github.com> Date: Fri, 30 Oct 2026 17:23:00 -0500 Subject: [PATCH] fix: initialize slide action test run props --- crates/engine/src/cmd/inspect.rs | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/crates/engine/src/cmd/inspect.rs b/crates/engine/src/cmd/inspect.rs index e09cf14a..1da38843 100644 --- a/crates/engine/src/cmd/inspect.rs +++ b/crates/engine/src/cmd/inspect.rs @@ -239,8 +239,7 @@ mod tests { let mut child = Shape { id: ShapeId(12), name: "Child".into(), ..Default::default() }; child.click = Some(link(Action::NextSlide)); child.hover = Some(link(Action::Url { url: "https://example.com/hover".into() })); - let mut run_props = RunProps::default(); - run_props.link = Some(link(Action::Slide { slide: deckcraft_model::SlideId(7) })); + let run_props = RunProps { link: Some(link(Action::Slide { slide: deckcraft_model::SlideId(7) })), ..Default::default() }; let mut paragraph = Paragraph::new("linked"); paragraph.runs = vec![Run::with("linked", run_props)]; child.text = Some(TextBody { paragraphs: vec![paragraph], ..Default::default() }); @@ -268,8 +267,7 @@ mod tests { assert_eq!(actions[2]["owner"]["runIndex"], 0); assert_eq!(actions[2]["target"], 7); - let mut cell_props = RunProps::default(); - cell_props.hover = Some(link(Action::Url { url: "https://example.com/cell".into() })); + let cell_props = RunProps { hover: Some(link(Action::Url { url: "https://example.com/cell".into() })), ..Default::default() }; let mut cell_text = TextBody::from_text("cell link"); cell_text.paragraphs[0].runs = vec![Run::with("cell link", cell_props)]; let table =