rust-clippy/tests/ui/needless_if.stderr

26 lines
477 B
Text
Raw Normal View History

2023-06-10 11:43:30 +00:00
error: this if branch is empty
--> $DIR/needless_if.rs:19:5
|
LL | if (true) {}
| ^^^^^^^^^^^^ help: you can remove it: `(true);`
|
= note: `-D clippy::needless-if` implied by `-D warnings`
error: this if branch is empty
--> $DIR/needless_if.rs:29:5
|
LL | / if {
LL | | return;
LL | | } {}
| |________^
|
help: you can remove it
|
LL ~ {
LL + return;
LL + };
|
error: aborting due to 2 previous errors