rust-clippy/tests/ui/copies.stderr

36 lines
948 B
Text
Raw Normal View History

error: This else block is redundant.
2017-09-18 10:47:33 +00:00
--> $DIR/copies.rs:120:20
|
2017-09-18 10:47:33 +00:00
120 | } else {
| ____________________^
2017-09-18 10:47:33 +00:00
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.
2017-09-18 10:47:33 +00:00
--> $DIR/copies.rs:130:20
|
2017-09-18 10:47:33 +00:00
130 | } else {
| ____________________^
2017-09-18 10:47:33 +00:00
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...
}