Skip to content

VectorCraft: An open-source, vector art tool written by scratch in pure Rust

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

bflatastic26b6893064f3
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();