|
| 1 | +error: conversion to radians can be done more accurately |
| 2 | + --> $DIR/floating_point_rad.rs:12:13 |
| 3 | + | |
| 4 | +LL | let _ = degrees as f64 * std::f64::consts::PI / 180.0; |
| 5 | + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: consider using: `(degrees as f64).to_radians()` |
| 6 | + | |
| 7 | + = note: `-D clippy::suboptimal-flops` implied by `-D warnings` |
| 8 | + |
1 | 9 | error: conversion to degrees can be done more accurately |
2 | 10 | --> $DIR/floating_point_rad.rs:13:13 |
3 | 11 | | |
| 12 | +LL | let _ = degrees as f64 * 180.0 / std::f64::consts::PI; |
| 13 | + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: consider using: `(degrees as f64).to_degrees()` |
| 14 | + |
| 15 | +error: conversion to degrees can be done more accurately |
| 16 | + --> $DIR/floating_point_rad.rs:18:13 |
| 17 | + | |
4 | 18 | LL | let _ = x * 180f32 / std::f32::consts::PI; |
5 | 19 | | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: consider using: `x.to_degrees()` |
6 | | - | |
7 | | - = note: `-D clippy::suboptimal-flops` implied by `-D warnings` |
8 | 20 |
|
9 | 21 | error: conversion to degrees can be done more accurately |
10 | | - --> $DIR/floating_point_rad.rs:14:13 |
| 22 | + --> $DIR/floating_point_rad.rs:19:13 |
11 | 23 | | |
12 | 24 | LL | let _ = 90. * 180f64 / std::f64::consts::PI; |
13 | 25 | | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: consider using: `90.0_f64.to_degrees()` |
14 | 26 |
|
15 | 27 | error: conversion to degrees can be done more accurately |
16 | | - --> $DIR/floating_point_rad.rs:15:13 |
| 28 | + --> $DIR/floating_point_rad.rs:20:13 |
17 | 29 | | |
18 | 30 | LL | let _ = 90.5 * 180f64 / std::f64::consts::PI; |
19 | 31 | | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: consider using: `90.5_f64.to_degrees()` |
20 | 32 |
|
21 | 33 | error: conversion to radians can be done more accurately |
22 | | - --> $DIR/floating_point_rad.rs:16:13 |
| 34 | + --> $DIR/floating_point_rad.rs:21:13 |
23 | 35 | | |
24 | 36 | LL | let _ = x * std::f32::consts::PI / 180f32; |
25 | 37 | | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: consider using: `x.to_radians()` |
26 | 38 |
|
27 | 39 | error: conversion to radians can be done more accurately |
28 | | - --> $DIR/floating_point_rad.rs:17:13 |
| 40 | + --> $DIR/floating_point_rad.rs:22:13 |
29 | 41 | | |
30 | 42 | LL | let _ = 90. * std::f32::consts::PI / 180f32; |
31 | 43 | | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: consider using: `90.0_f64.to_radians()` |
32 | 44 |
|
33 | 45 | error: conversion to radians can be done more accurately |
34 | | - --> $DIR/floating_point_rad.rs:18:13 |
| 46 | + --> $DIR/floating_point_rad.rs:23:13 |
35 | 47 | | |
36 | 48 | LL | let _ = 90.5 * std::f32::consts::PI / 180f32; |
37 | 49 | | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: consider using: `90.5_f64.to_radians()` |
38 | 50 |
|
39 | | -error: aborting due to 6 previous errors |
| 51 | +error: aborting due to 8 previous errors |
40 | 52 |
|
0 commit comments