2 #![warn(clippy::suboptimal_flops)]
3 #![allow(clippy::unnecessary_cast)]
9 let _ = (x as f32).log(y);
13 // Cases where the lint shouldn't be applied
14 let _ = x.ln() / y.powf(3.2);
15 let _ = x.powf(3.2) / y.powf(3.2);
16 let _ = x.powf(3.2) / y.ln();
17 let _ = x.log(5f32) / y.log(7f32);