mirror of
https://github.com/rust-lang/rust-clippy
synced 2025-02-17 06:28:42 +00:00
Changed test output to reflect cargo fmt
This commit is contained in:
parent
bfa2691559
commit
ee73972537
1 changed files with 3 additions and 8 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue