From b84f06f463dcdc8783c1745fed33a138bc81e1db Mon Sep 17 00:00:00 2001 From: Don Omondi <282319807+mockydevs@users.noreply.github.com> Date: Tue, 17 Nov 2026 08:39:39 -0500 Subject: [PATCH] Twist test: walk the anchors through Anchors::iter after the merge Main now keeps a subpath's anchors in shared chunks, which can't be sliced. --- crates/effects/src/tests.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/effects/src/tests.rs b/crates/effects/src/tests.rs index d48b91223e..52b38f986d 100644 --- a/crates/effects/src/tests.rs +++ b/crates/effects/src/tests.rs @@ -1697,7 +1697,7 @@ fn twist_joins_its_pieces_smoothly() { let out = apply_geometry(&[fx("distort.twist", json!({"angle": angle}))], &line, bounds); let anchors = &out.subpaths[0].anchors; assert!(anchors.len() > 8, "{angle}°: {} anchors", anchors.len()); - for a in &anchors[1..anchors.len() - 1] { + for a in anchors.iter().skip(1).take(anchors.len() - 2) { let (into, out) = (a.p - a.h_in, a.h_out - a.p); if into.hypot() < 1e-9 || out.hypot() < 1e-9 { continue;