mirror of
https://github.com/storytold/vectorcraft.git
synced 2026-11-01 13:47:21 -06:00
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:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user