Fix clippy and enable clippy on CI

This commit is contained in:
Sébastien Crozet
2024-01-27 16:49:53 +01:00
committed by Sébastien Crozet
parent aef873f20e
commit da92e5c283
81 changed files with 420 additions and 468 deletions

View File

@@ -25,7 +25,7 @@ impl SimdRealCopy for SimdReal {}
const INV_EPSILON: Real = 1.0e-20;
pub(crate) fn inv(val: Real) -> Real {
if val >= -INV_EPSILON && val <= INV_EPSILON {
if (-INV_EPSILON..=INV_EPSILON).contains(&val) {
0.0
} else {
1.0 / val