From 88b4c5b8833517e13ce570653be866a8265ff8e3 Mon Sep 17 00:00:00 2001 From: bherbruck Date: Fri, 9 Oct 2026 20:18:05 -0400 Subject: [PATCH] fix: preserve behavior under new Clippy lints Keep the fixed ray direction explicit and simplify a single-element loop. --- crates/engine/src/cmd/motion.rs | 2 ++ crates/ui-egui/src/dialogs.rs | 6 ++---- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/crates/engine/src/cmd/motion.rs b/crates/engine/src/cmd/motion.rs index 8e566718..96541ac7 100644 --- a/crates/engine/src/cmd/motion.rs +++ b/crates/engine/src/cmd/motion.rs @@ -179,6 +179,8 @@ fn deepest(a: &solvecraft_geom::Mesh, b: &solvecraft_geom::Mesh, tol: f64) -> f6 /// Ray parity along a skew direction (no axis-aligned edge hits). fn inside(p: Vec3, tris: &[[Vec3; 3]]) -> bool { + // Fixed ray coordinates, not an approximation used to compute Euler's constant. + #[allow(clippy::approx_constant)] let dir = Vec3::new(0.577_215_664_9, 0.327_118_441_9, 0.751_891_438_7); let mut n = 0; for [a, b, c] in tris { diff --git a/crates/ui-egui/src/dialogs.rs b/crates/ui-egui/src/dialogs.rs index 7f7f00ae..1056e229 100644 --- a/crates/ui-egui/src/dialogs.rs +++ b/crates/ui-egui/src/dialogs.rs @@ -2765,10 +2765,8 @@ pub fn for_feature(app: &SolveApp, id: u64, marker: Option) -> Option