mirror of
https://github.com/bherbruck/solidcraft.git
synced 2026-11-08 13:01:52 +00:00
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:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user