Module clippy_lints::needless_continue
[−]
[src]
Checks for continue statements in loops that are redundant.
For example, the lint would catch
while condition() { update_condition(); if x { // ... } else { continue; } println!("Hello, world"); }
And suggest something like this:
while condition() { update_condition(); if x { // ... println!("Hello, world"); } }
This lint is warn by default.
Structs
NeedlessContinue |
Statics
NEEDLESS_CONTINUE |
Functions
erode_block |
If |
erode_from_back |
Eats at |
erode_from_front |
Eats at |