diff --git a/crates/solidcore/src/blend/fillet_corner/p3.rs b/crates/solidcore/src/blend/fillet_corner/p3.rs index eb11071f77..5bad3d0b72 100644 --- a/crates/solidcore/src/blend/fillet_corner/p3.rs +++ b/crates/solidcore/src/blend/fillet_corner/p3.rs @@ -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() diff --git a/crates/solidcore/tests/wr644_mitre_gap_patch.rs b/crates/solidcore/tests/wr644_mitre_gap_patch.rs index 6a0a2fa875..de7aa0805b 100644 --- a/crates/solidcore/tests/wr644_mitre_gap_patch.rs +++ b/crates/solidcore/tests/wr644_mitre_gap_patch.rs @@ -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 {