1 #![warn(clippy::integer_arithmetic, clippy::float_arithmetic)]
5 clippy::shadow_unrelated,
7 clippy::unnecessary_operation,
29 // also warn about floating point arith with references involved
31 pub fn float_arith_ref() {
37 pub fn float_foo(f: &f32) -> f32 {
42 pub fn float_bar(f1: &f32, f2: &f32) -> f32 {
46 pub fn float_baz(f1: f32, f2: &f32) -> f32 {
50 pub fn float_qux(f1: f32, f2: f32) -> f32 {