Skip to content

Redundant continue #16034

@A4-Tacks

Description

@A4-Tacks

What it does

Remove redundant codes

Advantage

Removed redundant codes

Drawbacks

No response

Example

fn main() {
    for i in 0..5 {
        dbg!(i);
        continue;
    }
}

Could be written as:

fn main() {
    for i in 0..5 {
        dbg!(i);
    }
}

Comparison with existing lints

No response

Additional Context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-lintArea: New lints

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions