From e6ab0e70acf5ac527201a01e2ee89d7a7a979708 Mon Sep 17 00:00:00 2001 From: Hakan Seven Date: Wed, 10 Jun 2026 02:02:18 +0300 Subject: [PATCH] fix(settings): cover SnapType::ObjectPick in persisted-mode match PR #80 added the internal SnapType::ObjectPick variant, which left the exhaustive snap_id match in the settings module non-exhaustive and broke the build after the merge. Map it to a stable id; it is not a user-toggleable OSNAP mode, so it never enters SNAP_ORDER or the persisted set. Co-Authored-By: Claude Opus 4.8 --- src/app/settings.rs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/app/settings.rs b/src/app/settings.rs index aef3fc407..5793f9ab0 100644 --- a/src/app/settings.rs +++ b/src/app/settings.rs @@ -46,6 +46,9 @@ fn snap_id(s: SnapType) -> &'static str { SnapType::ApparentIntersection => "apparentintersection", SnapType::Parallel => "parallel", SnapType::Grid => "grid", + // Internal plugin object-pick snap — not a user-toggleable OSNAP mode, + // so it never enters SNAP_ORDER / the persisted set. + SnapType::ObjectPick => "objectpick", } }