From ee739725378105db6f3d8593b12fde6998c9104c Mon Sep 17 00:00:00 2001 From: JarredAllen Date: Sat, 29 Feb 2020 19:11:38 -0800 Subject: [PATCH] Changed test output to reflect cargo fmt --- tests/ui/floating_point_abs.stderr | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) diff --git a/tests/ui/floating_point_abs.stderr b/tests/ui/floating_point_abs.stderr index dd648a8a272..44a9dbee5bb 100644 --- a/tests/ui/floating_point_abs.stderr +++ b/tests/ui/floating_point_abs.stderr @@ -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