mirror of
https://github.com/storytold/craft-libs.git
synced 2026-11-18 03:42:58 +00:00
test: satisfy scoped clippy checks
This commit is contained in:
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<_>>()),
|
||||
|
||||
Reference in New Issue
Block a user