1 error: conversion to degrees can be done more accurately
2 --> $DIR/floating_point_rad.rs:13:13
4 LL | let _ = x * 180f32 / std::f32::consts::PI;
5 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: consider using: `x.to_degrees()`
7 = note: `-D clippy::suboptimal-flops` implied by `-D warnings`
9 error: conversion to degrees can be done more accurately
10 --> $DIR/floating_point_rad.rs:14:13
12 LL | let _ = 90. * 180f64 / std::f64::consts::PI;
13 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: consider using: `90.0_f64.to_degrees()`
15 error: conversion to degrees can be done more accurately
16 --> $DIR/floating_point_rad.rs:15:13
18 LL | let _ = 90.5 * 180f64 / std::f64::consts::PI;
19 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: consider using: `90.5_f64.to_degrees()`
21 error: conversion to radians can be done more accurately
22 --> $DIR/floating_point_rad.rs:16:13
24 LL | let _ = x * std::f32::consts::PI / 180f32;
25 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: consider using: `x.to_radians()`
27 error: conversion to radians can be done more accurately
28 --> $DIR/floating_point_rad.rs:17:13
30 LL | let _ = 90. * std::f32::consts::PI / 180f32;
31 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: consider using: `90.0_f64.to_radians()`
33 error: conversion to radians can be done more accurately
34 --> $DIR/floating_point_rad.rs:18:13
36 LL | let _ = 90.5 * std::f32::consts::PI / 180f32;
37 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: consider using: `90.5_f64.to_radians()`
39 error: aborting due to 6 previous errors