test: satisfy scoped clippy checks

This commit is contained in:
skylar taylor-barrick
2026-11-17 22:29:55 +01:00
committed by skylar
parent 591a339033
commit 5965a7e3c9
@@ -54,7 +54,7 @@ fn shown<'a>(runs: &'a [Run], field: Rect, text: &str) -> &'a Run {
}
/// The one run inside `field` (the dash of a mixed field).
fn only<'a>(runs: &'a [Run], field: Rect) -> &'a Run {
fn only(runs: &[Run], field: Rect) -> &Run {
match runs.iter().find(|run| field.expand(1.0).contains_rect(run.rect)) {
Some(run) => run,
None => panic!("{field:?} paints nothing: {:?}", runs.iter().map(|run| run.text.clone()).collect::<Vec<_>>()),