mirror of
https://github.com/rust-lang/rust-clippy
synced 2024-11-24 05:33:27 +00:00
Update ui tests
This commit is contained in:
parent
679e98530a
commit
3534149035
1 changed files with 40 additions and 0 deletions
|
@ -1,3 +1,43 @@
|
|||
warning: This else block is redundant.
|
||||
|
||||
--> $DIR/copies.rs:128:20
|
||||
|
|
||||
128 | } else {
|
||||
| ____________________^ starting here...
|
||||
129 | | continue;
|
||||
130 | | }
|
||||
| |_____________^ ...ending here
|
||||
|
|
||||
= note: #[warn(needless_continue)] on by default
|
||||
= 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...
|
||||
|
||||
}
|
||||
|
||||
|
||||
warning: This else block is redundant.
|
||||
|
||||
--> $DIR/copies.rs:138:20
|
||||
|
|
||||
138 | } else {
|
||||
| ____________________^ starting here...
|
||||
139 | | continue;
|
||||
140 | | }
|
||||
| |_____________^ ...ending here
|
||||
|
|
||||
= note: #[warn(needless_continue)] on by default
|
||||
= 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 `if` has identical blocks
|
||||
--> $DIR/copies.rs:40:10
|
||||
|
|
||||
|
|
Loading…
Reference in a new issue