Fix/clippy option zip (#1798)

Thanks @Ian-cmd-ops.
This commit is contained in:
H. Conrad authored and GitHub committed 2026-10-16 16:26:11 -04:00
1 parent 04b4381b54
commit bb13799246
3 files changed
+4 -4

No files matched your search

+2 -1
View File
@@ -239,7 +239,8 @@ fn survey(body: &Body, d: Vec3, tol: f64, mesh_tol: f64, axes: [Vec3; 3]) -> Opt
let o = p.origin();
flat.push((n, n.dot(Vec3::new(o.x, o.y, o.z))));
let along = n.dot(d).abs();
!(along > 1.0 - 1e-9 || along < 1e-9)
// NaN counts as inside, as the comparisons it replaces did.
along.is_nan() || (1e-9..=1.0 - 1e-9).contains(&along)
}
_ => !crate::prism::wall_along(&surface, d, tol, &mut work),
}