mirror of
https://github.com/rust-lang/rust-clippy
synced 2024-11-27 15:11:30 +00:00
35 lines
948 B
Text
35 lines
948 B
Text
error: This else block is redundant.
|
|
|
|
--> $DIR/copies.rs:120:20
|
|
|
|
|
120 | } else {
|
|
| ____________________^
|
|
121 | | continue;
|
|
122 | | }
|
|
| |_____________^
|
|
|
|
|
= note: `-D needless-continue` implied by `-D warnings`
|
|
= help: Consider dropping the else clause and merging the code that follows (in the loop) with the if block, like so:
|
|
if true {
|
|
break;
|
|
// Merged code follows...
|
|
}
|
|
|
|
|
|
error: This else block is redundant.
|
|
|
|
--> $DIR/copies.rs:130:20
|
|
|
|
|
130 | } else {
|
|
| ____________________^
|
|
131 | | continue;
|
|
132 | | }
|
|
| |_____________^
|
|
|
|
|
= help: Consider dropping the else clause and merging the code that follows (in the loop) with the if block, like so:
|
|
if true {
|
|
break;
|
|
// Merged code follows...
|
|
}
|
|
|
|
|