Direct Selection: copy the segment's anchors (clippy)

This commit is contained in:
bflatastic
2026-10-30 07:13:52 +07:00
parent 8fcc58d134
commit bef094a121
+1 -1
View File
@@ -543,7 +543,7 @@ fn crossed_segments(path: &PathData, r: Rect) -> Vec<AnchorRef> {
if r.contains(a.p) || r.contains(b.p) {
continue;
}
let piece = PathData::single(vectorcraft_geom::SubPath::new(vec![a.clone(), b.clone()], false));
let piece = PathData::single(vectorcraft_geom::SubPath::new(vec![*a, *b], false));
if vectorcraft_geom::hit::intersects_rect(&piece, r) {
out.push((si, seg));
}