Skip to content

while_let_on_iterator false positive #1654

Closed
@clarfonthey

Description

@clarfonthey

Also from toml-rs:

while let Some((_, ch)) = self.chars.clone().next() {

This should not be changed to:

for (_, ch) in self.chars.clone() {

Because they are semantically different.

Metadata

Metadata

Assignees

No one assigned

    Labels

    C-bugCategory: Clippy is not doing the correct thingT-middleType: Probably requires verifiying types

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions