fix clippy (preflight)

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Brandon Thomas 2026-10-01 11:55:35 -04:00
parent 9fdd61a390
commit 37f59f1fc8
1 changed files with 2 additions and 4 deletions

View File

@ -98,10 +98,8 @@ pub fn check(s: &Session, min_ppi: f64) -> Vec<Issue> {
}
}
},
Content::Text(tf) => {
if d.story(tf.story).is_some_and(|s| s.is_empty()) {
out.push(Issue { severity: "warning", kind: "emptyText", message: "Empty text frame".into(), item: Some(it.id.0), page });
}
Content::Text(tf) if d.story(tf.story).is_some_and(|s| s.is_empty()) => {
out.push(Issue { severity: "warning", kind: "emptyText", message: "Empty text frame".into(), item: Some(it.id.0), page });
}
_ => {}
}