2022-08-31 13:24:45 +00:00
|
|
|
error: conversion to radians can be done more accurately
|
2023-08-24 19:32:12 +00:00
|
|
|
--> $DIR/floating_point_rad.rs:11:13
|
2022-08-31 13:24:45 +00:00
|
|
|
|
|
|
|
|
LL | let _ = degrees as f64 * std::f64::consts::PI / 180.0;
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: consider using: `(degrees as f64).to_radians()`
|
|
|
|
|
|
|
|
|
= note: `-D clippy::suboptimal-flops` implied by `-D warnings`
|
2023-08-01 12:02:21 +00:00
|
|
|
= help: to override `-D warnings` add `#[allow(clippy::suboptimal_flops)]`
|
2022-08-31 13:24:45 +00:00
|
|
|
|
2020-07-14 12:59:59 +00:00
|
|
|
error: conversion to degrees can be done more accurately
|
2023-08-24 19:32:12 +00:00
|
|
|
--> $DIR/floating_point_rad.rs:12:13
|
2020-07-14 12:59:59 +00:00
|
|
|
|
|
2022-08-31 13:24:45 +00:00
|
|
|
LL | let _ = degrees as f64 * 180.0 / std::f64::consts::PI;
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: consider using: `(degrees as f64).to_degrees()`
|
|
|
|
|
|
|
|
error: conversion to degrees can be done more accurately
|
2023-08-24 19:32:12 +00:00
|
|
|
--> $DIR/floating_point_rad.rs:17:13
|
2022-08-31 13:24:45 +00:00
|
|
|
|
|
2020-07-14 12:59:59 +00:00
|
|
|
LL | let _ = x * 180f32 / std::f32::consts::PI;
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: consider using: `x.to_degrees()`
|
|
|
|
|
2021-12-30 14:10:43 +00:00
|
|
|
error: conversion to degrees can be done more accurately
|
2023-08-24 19:32:12 +00:00
|
|
|
--> $DIR/floating_point_rad.rs:18:13
|
2020-07-14 12:59:59 +00:00
|
|
|
|
|
2021-12-30 14:10: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
|
2023-08-24 19:32:12 +00:00
|
|
|
--> $DIR/floating_point_rad.rs:19:13
|
2021-12-30 14:10:43 +00:00
|
|
|
|
|
|
|
|
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
|
2023-08-24 19:32:12 +00:00
|
|
|
--> $DIR/floating_point_rad.rs:20:13
|
2021-12-30 14:10:43 +00:00
|
|
|
|
|
2020-07-14 12:59:59 +00:00
|
|
|
LL | let _ = x * std::f32::consts::PI / 180f32;
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: consider using: `x.to_radians()`
|
|
|
|
|
2021-12-30 14:10:43 +00:00
|
|
|
error: conversion to radians can be done more accurately
|
2023-08-24 19:32:12 +00:00
|
|
|
--> $DIR/floating_point_rad.rs:21:13
|
2021-12-30 14:10:43 +00:00
|
|
|
|
|
|
|
|
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
|
2023-08-24 19:32:12 +00:00
|
|
|
--> $DIR/floating_point_rad.rs:22:13
|
2021-12-30 14:10:43 +00:00
|
|
|
|
|
|
|
|
LL | let _ = 90.5 * std::f32::consts::PI / 180f32;
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: consider using: `90.5_f64.to_radians()`
|
|
|
|
|
2022-08-31 13:24:45 +00:00
|
|
|
error: aborting due to 8 previous errors
|
2020-07-14 12:59:59 +00:00
|
|
|
|