mirror of
https://github.com/rust-lang/rust-clippy
synced 2024-12-18 17:15:05 +00:00
37 lines
990 B
Text
37 lines
990 B
Text
error: This else block is redundant.
|
|
|
|
--> $DIR/copies.rs:121:20
|
|
|
|
|
121 | } else {
|
|
| ____________________^
|
|
122 | | continue;
|
|
123 | | }
|
|
| |_____________^
|
|
|
|
|
= 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:131:20
|
|
|
|
|
131 | } else {
|
|
| ____________________^
|
|
132 | | continue;
|
|
133 | | }
|
|
| |_____________^
|
|
|
|
|
= 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: aborting due to 2 previous errors
|
|
|