diff --git a/crates/thing-core/tests/render.rs b/crates/thing-core/tests/render.rs index 30ae2f5..3bd2ac3 100644 --- a/crates/thing-core/tests/render.rs +++ b/crates/thing-core/tests/render.rs @@ -626,7 +626,7 @@ fn random_documents_render_without_panic_balanced_and_equal() { initial: lit_text(["", "typed words"][(next() % 2) as usize]), submit: command("dismiss"), }), - (8, _) => Node::Plot(PlotNode { common: common(&id), series: series_bind("s"), mark: [PlotMark::Line, PlotMark::Area, PlotMark::Bar][(next() % 3) as usize], x_min: None, x_max: None, y_min: None, y_max: None }), + (8, _) => Node::Plot(PlotNode { common: common(&id), series: series_bind("s"), mark: [PlotMark::Line, PlotMark::Area, PlotMark::Bar][(next() % 3) as usize].clone(), x_min: None, x_max: None, y_min: None, y_max: None }), (2, d) if d < 3 => { let anchor = if next() % 2 == 0 { Anchor::Viewport } else { at(&generated[(next() % generated.len() as u64) as usize]) }; let children = (0..(next() % 3)).map(|_| grow(depth + 1, next, counter, generated, sizes, overflows, tokens)).collect();