mirror of
https://github.com/storytold/vectorcraft.git
synced 2026-10-31 05:07:51 -06:00
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:
co-authored by
Claude Opus 5.5
parent
0559aac53e
commit
26b6893064
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user