pathops: simplify the add-anchors segment check for clippy's nonminimal_bool

Pre-existing lint on main that stops cargo xtask ci at clippy; the same
one-line change other open PRs carry.
This commit is contained in:
Don Omondi
2026-10-31 19:43:17 +07:00
committed by bflatastic
parent 18709b0b63
commit acb5a9721b
+1 -1
View File
@@ -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 {