EPS import: clippy's simpler form of the off-page test

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
bflatastic
2026-10-09 15:06:39 +07:00
co-authored by Claude Opus 5.5
parent 0559aac53e
commit 26b6893064
+1 -1
View File
@@ -1146,7 +1146,7 @@ fn prune_unseen(page: &Document, doc: &mut Document) -> usize {
let mut with = difference(page, doc, rect);
let mut removed = 0;
for (id, bounds) in found {
if !bounds.is_some_and(|b| !b.intersect(rect).is_zero_area()) {
if bounds.is_none_or(|b| b.intersect(rect).is_zero_area()) {
continue;
}
let mut without = doc.clone();