2 #![warn(clippy::imprecise_flops)]
3 #![allow(clippy::unnecessary_cast)]
8 let _ = x.exp() - 1.0 + 2.0;
9 let _ = (x as f32).exp() - 1.0 + 2.0;
10 // Cases where the lint shouldn't be applied
11 let _ = x.exp() - 2.0;
12 let _ = x.exp() - 1.0 * 2.0;
15 let _ = x.exp() - 1.0;
16 let _ = x.exp() - 1.0 + 2.0;
17 // Cases where the lint shouldn't be applied
18 let _ = x.exp() - 2.0;
19 let _ = x.exp() - 1.0 * 2.0;