mirror of
https://github.com/rust-lang/rust-clippy
synced 2024-12-11 22:02:55 +00:00
26 lines
477 B
Text
26 lines
477 B
Text
|
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
|
||
|
|