1 #![warn(clippy::float_cmp_const)]
2 #![allow(clippy::float_cmp)]
3 #![allow(unused, clippy::no_effect, clippy::unnecessary_operation)]
8 fn eq_one(x: f32) -> bool {
13 } // no error, inside "eq" fn
29 // no errors, lower than or greater than comparisons
35 // no errors, zero and infinity values
38 ONE != ::std::f32::INFINITY;
39 ONE == ::std::f32::NEG_INFINITY;
41 // no errors, but will warn clippy::float_cmp if '#![allow(float_cmp)]' above is removed