]>
Commit | Line | Data |
---|---|---|
f20569fa XL |
1 | error: conversion to degrees can be done more accurately |
2 | --> $DIR/floating_point_rad.rs:6:13 | |
3 | | | |
4 | LL | let _ = x * 180f32 / std::f32::consts::PI; | |
5 | | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: consider using: `x.to_degrees()` | |
6 | | | |
7 | = note: `-D clippy::suboptimal-flops` implied by `-D warnings` | |
8 | ||
9 | error: conversion to radians can be done more accurately | |
10 | --> $DIR/floating_point_rad.rs:7:13 | |
11 | | | |
12 | LL | let _ = x * std::f32::consts::PI / 180f32; | |
13 | | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: consider using: `x.to_radians()` | |
14 | ||
15 | error: aborting due to 2 previous errors | |
16 |