2020-07-14 12:59:59 +00:00
|
|
|
error: conversion to degrees can be done more accurately
|
2021-12-06 11:33:31 +00:00
|
|
|
--> $DIR/floating_point_rad.rs:13:13
|
2020-07-14 12:59:59 +00:00
|
|
|
|
|
|
|
|
LL | let _ = x * 180f32 / std::f32::consts::PI;
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: consider using: `x.to_degrees()`
|
|
|
|
|
|
|
|
|
= note: `-D clippy::suboptimal-flops` implied by `-D warnings`
|
|
|
|
|
|
|
|
error: conversion to radians can be done more accurately
|
2021-12-06 11:33:31 +00:00
|
|
|
--> $DIR/floating_point_rad.rs:14:13
|
2020-07-14 12:59:59 +00:00
|
|
|
|
|
|
|
|
LL | let _ = x * std::f32::consts::PI / 180f32;
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: consider using: `x.to_radians()`
|
|
|
|
|
|
|
|
error: aborting due to 2 previous errors
|
|
|
|
|