manual-is-finite Prefer .isFinite() over equivalent infinity comparisons Strict infinity bounds and an absolute-value comparison with positive infinity perform the same finite-value classification. Instead, you SHOULD call .isFinite() on that value. Paired != checks are excluded because NaN satisfies both comparisons. - Category: style - Level: warning - Fix: suggestion - Scope: module Reported function finite(value: float64): boolean { return value > -Infinity && value < Infinity; } Accepted function finite(value: float64): boolean { return value.isFinite(); } Prior art - Clippy ยท manualisfinite language/linter/src/rules/style/manualisfinite.rs:8