Skip to content

lint Iterator::folds that can be one of the special methods #2237

Closed
@oli-obk

Description

@oli-obk

I just found .fold(false, |acc, x| acc || x.starts_with("--target")); in rustc. That should obviously be .any(|x| x.starts_with("--target"))

Metadata

Metadata

Assignees

No one assigned

    Labels

    L-unnecessaryLint: Warn about unnecessary codegood first issueThese issues are a good way to get started with Clippy

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions