From 59ef24aa0da5a413091d5ed9f4251a29293d9bac Mon Sep 17 00:00:00 2001 From: Meta Vens Date: Sat, 28 Nov 2026 10:09:20 +0100 Subject: [PATCH] thing-tui tests: pick a word by value --- crates/thing-tui/tests/diff.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/thing-tui/tests/diff.rs b/crates/thing-tui/tests/diff.rs index ac4e1ba..ddc3ffa 100644 --- a/crates/thing-tui/tests/diff.rs +++ b/crates/thing-tui/tests/diff.rs @@ -79,7 +79,7 @@ fn commands(rng: &mut Rng, count: usize, cols: u64, rows: u64) -> Vec fill(rect(x, y, w, h), color), 2 => stroke(rect(x, y, w, h), color), - 3 | 4 | 5 => text(x, y, rng.pick(&WORDS), color), + 3 | 4 | 5 => text(x, y, *rng.pick(&WORDS), color), 6 => RenderCommand::Polyline { points: vec![(x, y), (x + w, y + h)], width: 1.0, color }, _ => RenderCommand::Embed { rect: rect(x, y, w.min(3.0), h.min(2.0)), slot_kind: String::new(), slot_id: String::new() }, });