summary refs log tree commit diff
path: root/src/tools/clippy/tests/ui/floating_point_rad.stderr
blob: a6ffdca64eefea7b563eec7a75c4002f87083be1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
error: conversion to degrees can be done more accurately
  --> $DIR/floating_point_rad.rs:6:13
   |
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
  --> $DIR/floating_point_rad.rs:7:13
   |
LL |     let _ = x * std::f32::consts::PI / 180f32;
   |             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: consider using: `x.to_radians()`

error: aborting due to 2 previous errors