1 error: This looks like you've implemented your own absolute value function
2 --> $DIR/floating_point_abs.rs:9:5
9 | |_____^ help: try: `num.abs()`
11 = note: `-D clippy::suboptimal-flops` implied by `-D warnings`
13 error: This looks like you've implemented your own absolute value function
14 --> $DIR/floating_point_abs.rs:17:5
21 | |_____^ help: try: `num.abs()`
23 error: This looks like you've implemented your own absolute value function
24 --> $DIR/floating_point_abs.rs:25:5
31 | |_____^ help: try: `a.a.abs()`
33 error: This looks like you've implemented your own absolute value function
34 --> $DIR/floating_point_abs.rs:33:5
36 LL | / if 0.0 >= num {
41 | |_____^ help: try: `num.abs()`
43 error: This looks like you've implemented your own absolute value function
44 --> $DIR/floating_point_abs.rs:41:5
51 | |_____^ help: try: `a.a.abs()`
53 error: This looks like you've implemented your own negative absolute value function
54 --> $DIR/floating_point_abs.rs:49:5
61 | |_____^ help: try: `-num.abs()`
63 error: This looks like you've implemented your own negative absolute value function
64 --> $DIR/floating_point_abs.rs:57:5
66 LL | / if 0.0 >= num {
71 | |_____^ help: try: `-num.abs()`
73 error: This looks like you've implemented your own negative absolute value function
74 --> $DIR/floating_point_abs.rs:66:12
76 LL | a: if a.a >= 0.0 { -a.a } else { a.a },
77 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `-a.a.abs()`
79 error: aborting due to 8 previous errors