clippy: fix redundant_closure warnings
This commit is contained in:
parent
726b8eeecf
commit
f515cffad9
|
@ -520,16 +520,13 @@ where
|
|||
let v = self.vector();
|
||||
let nn = v.norm_squared();
|
||||
let le = nn.simd_le(eps * eps);
|
||||
le.if_else(
|
||||
|| Self::identity(),
|
||||
|| {
|
||||
le.if_else(Self::identity, || {
|
||||
let w_exp = self.scalar().simd_exp();
|
||||
let n = nn.simd_sqrt();
|
||||
let nv = v * (w_exp * n.simd_sin() / n);
|
||||
|
||||
Self::from_parts(w_exp * n.simd_cos(), nv)
|
||||
},
|
||||
)
|
||||
})
|
||||
}
|
||||
|
||||
/// Raise the quaternion to a given floating power.
|
||||
|
|
|
@ -453,7 +453,7 @@ where
|
|||
sqz + (N::one() - sqz) * cos,
|
||||
))
|
||||
},
|
||||
|| Self::identity(),
|
||||
Self::identity,
|
||||
)
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue