VectorCraft: An open-source, vector art tool written by scratch in pure Rust
pathops: simplify the add-anchors segment check for clippy's nonminimal_bool
Don Omondiacb5a9721b7e
diff --git a/crates/pathops/src/addons/pathtools.rs b/crates/pathops/src/addons/pathtools.rsindex 8e0474c9a..b98778cc5 100644--- a/crates/pathops/src/addons/pathtools.rs+++ b/crates/pathops/src/addons/pathtools.rs@@ -185,7 +185,7 @@ pub fn add_anchors(sp: &SubPath, which: SegmentKind, spacing: AnchorSpacing, cap};let c = sp.segment(seg);let len = c.arclen(ACCURACY);- if !picked || !(len > TINY && len.is_finite()) {+ if !(picked && len > TINY && len.is_finite()) {continue;}let (count, step) = match spacing {