Skip to content

Suggest replacing 'iter().any(|x| x == y)' with 'contains' where appropriate #2534

Open
@TheIronBorn

Description

@TheIronBorn

Particularly for str.chars().any or types with non-default implementations of SliceContains.

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-lintArea: New lintsL-perfLint: Belongs in the perf lint groupL-unnecessaryLint: Warn about unnecessary codeT-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