Thing 2.0 cut 6b fix: clone the random plot mark

This commit is contained in:
Meta Vens 2026-11-28 08:34:38 +01:00
commit 33835357cf

View file

@ -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();