From 26b6893064f3445abc1af23b1e611e969b3652a3 Mon Sep 17 00:00:00 2001 From: bflatastic Date: Fri, 9 Oct 2026 15:06:39 +0700 Subject: [PATCH] EPS import: clippy's simpler form of the off-page test Co-Authored-By: Claude Opus 5.5 --- crates/eps/src/import/native.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/eps/src/import/native.rs b/crates/eps/src/import/native.rs index a40e2d9d8..af9c4e419 100644 --- a/crates/eps/src/import/native.rs +++ b/crates/eps/src/import/native.rs @@ -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();