2020-06-10 16:52:00 +00:00
|
|
|
error: conversion to degrees can be done more accurately
|
2021-11-20 14:04:08 +00:00
|
|
|
--> $DIR/floating_point_rad.rs:13:13
|
2020-06-10 16:52:00 +00:00
|
|
|
|
|
|
|
|
LL | let _ = x * 180f32 / std::f32::consts::PI;
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: consider using: `x.to_degrees()`
|
|
|
|
|
|
2020-06-15 16:59:44 +00:00
|
|
|
= note: `-D clippy::suboptimal-flops` implied by `-D warnings`
|
2020-06-10 16:52:00 +00:00
|
|
|
|
2021-12-28 16:45:43 +00:00
|
|
|
error: conversion to degrees can be done more accurately
|
2021-11-20 14:04:08 +00:00
|
|
|
--> $DIR/floating_point_rad.rs:14:13
|
2020-06-10 16:52:00 +00:00
|
|
|
|
|
2021-12-28 16:45:43 +00:00
|
|
|
LL | let _ = 90. * 180f64 / std::f64::consts::PI;
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: consider using: `90.0_f64.to_degrees()`
|
|
|
|
|
|
|
|
error: conversion to degrees can be done more accurately
|
|
|
|
--> $DIR/floating_point_rad.rs:15:13
|
|
|
|
|
|
|
|
|
LL | let _ = 90.5 * 180f64 / std::f64::consts::PI;
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: consider using: `90.5_f64.to_degrees()`
|
|
|
|
|
|
|
|
error: conversion to radians can be done more accurately
|
|
|
|
--> $DIR/floating_point_rad.rs:16:13
|
|
|
|
|
|
2020-06-10 16:52:00 +00:00
|
|
|
LL | let _ = x * std::f32::consts::PI / 180f32;
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: consider using: `x.to_radians()`
|
|
|
|
|
2021-12-28 16:45:43 +00:00
|
|
|
error: conversion to radians can be done more accurately
|
|
|
|
--> $DIR/floating_point_rad.rs:17:13
|
|
|
|
|
|
|
|
|
LL | let _ = 90. * std::f32::consts::PI / 180f32;
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: consider using: `90.0_f64.to_radians()`
|
|
|
|
|
|
|
|
error: conversion to radians can be done more accurately
|
|
|
|
--> $DIR/floating_point_rad.rs:18:13
|
|
|
|
|
|
|
|
|
LL | let _ = 90.5 * std::f32::consts::PI / 180f32;
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: consider using: `90.5_f64.to_radians()`
|
|
|
|
|
|
|
|
error: aborting due to 6 previous errors
|
2020-06-10 16:52:00 +00:00
|
|
|
|