Changed test output to reflect cargo fmt

This commit is contained in:
JarredAllen 2020-02-29 19:11:38 -08:00
parent bfa2691559
commit ee73972537
1 changed files with 3 additions and 8 deletions

View File

@ -71,15 +71,10 @@ LL | | }
| |_____^ help: try: `-num.abs()`
error: This looks like you've implemented your own negative absolute value function
--> $DIR/floating_point_abs.rs:65:12
--> $DIR/floating_point_abs.rs:66:12
|
LL | A { a: if a.a >= 0.0 {
| ____________^
LL | | -a.a
LL | | } else {
LL | | a.a
LL | | }, b: a.b }
| |_________^ help: try: `-a.a.abs()`
LL | a: if a.a >= 0.0 { -a.a } else { a.a },
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `-a.a.abs()`
error: aborting due to 8 previous errors