2 #![warn(clippy::suboptimal_flops)]
6 let _ = x.to_degrees();
7 let _ = x.to_radians();
8 // Cases where the lint shouldn't be applied
9 let _ = x * 90f32 / std::f32::consts::PI;
10 let _ = x * std::f32::consts::PI / 90f32;
11 let _ = x * 180f32 / std::f32::consts::E;
12 let _ = x * std::f32::consts::E / 180f32;