1 #![warn(clippy::integer_arithmetic, clippy::float_arithmetic)]
5 clippy::shadow_unrelated,
7 clippy::unnecessary_operation,
9 clippy::trivially_copy_pass_by_ref
30 // also warn about floating point arith with references involved
32 pub fn float_arith_ref() {
38 pub fn float_foo(f: &f32) -> f32 {
43 pub fn float_bar(f1: &f32, f2: &f32) -> f32 {
47 pub fn float_baz(f1: f32, f2: &f32) -> f32 {
51 pub fn float_qux(f1: f32, f2: f32) -> f32 {