mirror of
https://github.com/rust-lang/rust-clippy
synced 2024-11-28 15:41:10 +00:00
6b6253016f
rustc now (https://github.com/rust-lang/rust/issues/33525) does not report an error count anymore, because it was not correct in many cases.
41 lines
1.1 KiB
Text
41 lines
1.1 KiB
Text
error: This else block is redundant.
|
|
|
|
--> 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.
|
|
|
|
--> copies.rs:131:20
|
|
|
|
|
131 | } else {
|
|
| ____________________^
|
|
132 | | continue;
|
|
133 | | }
|
|
| |_____________^
|
|
|
|
|
= 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: aborting due to previous error(s)
|
|
|
|
error: Could not compile `clippy_tests`.
|
|
|
|
To learn more, run the command again with --verbose.
|