fix: satisfy clippy in the WR-644 gap branch and its test

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01MNXLXj2sJf943y2dDF36Vy
This commit is contained in:
Brett Lawson
2026-10-31 07:22:10 +01:00
parent a31424e16f
commit 00a19b33be
2 changed files with 2 additions and 6 deletions
@@ -2127,7 +2127,7 @@ impl FilletCorner {
.ok_or_else(|| invalid(OP_TOPO, "m_cpVertex is NULL"))?,
self.solver_eus
.as_ref()
.and_then(|eus| eus.get(0).copied())
.and_then(|eus| eus.first().copied())
.ok_or_else(|| invalid(OP_TOPO, "m_pSolverEUs[0] is NULL"))?,
self.solver_eus
.as_ref()
@@ -89,11 +89,7 @@ struct Basin {
impl Basin {
fn at(self, z: f64) -> [f64; 4] {
let t = (z - 10.0) / 20.0;
let mut r = [0.0; 4];
for i in 0..4 {
r[i] = self.bottom[i] + (self.top[i] - self.bottom[i]) * t;
}
r
core::array::from_fn(|i| self.bottom[i] + (self.top[i] - self.bottom[i]) * t)
}
fn build(self, k: &mut Kernel) -> Brep {