--> $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...
-
+ break;
+ // Merged code follows...
}
--> $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...
-
+ break;
+ // Merged code follows...
}
--> $DIR/needless_continue.rs:26:16
|
26 | } else {
- | ________________^ starting here...
+ | ________________^
27 | | continue;
28 | | }
- | |_________^ ...ending here
+ | |_________^
|
note: lint level defined here
--> $DIR/needless_continue.rs:12:8
--> $DIR/needless_continue.rs:41:9
|
-41 | if (zero!(i % 2) || nonzero!(i % 5)) && i % 3 != 0 {
- | _________^ starting here...
+41 | / if (zero!(i % 2) || nonzero!(i % 5)) && i % 3 != 0 {
42 | | continue;
43 | | } else {
44 | | println!("Blabber");
45 | | println!("Jabber");
46 | | }
- | |_________^ ...ending here
+ | |_________^
|
= help: Consider dropping the else clause, and moving out the code in the else block, like so:
if (zero!(i % 2) || nonzero!(i % 5)) && i % 3 != 0 {