Skip to content

add a lint for find_map #3474

Closed
Closed
@Eh2406

Description

@Eh2406

There are a bunch of iterator chains that are clearer with the new find_map. Off the top of my head, .find(_).map(_) and .filter_map(_).nex(). I think clippy should have a lit for this like the filter_map and filter_next lints.

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-lintArea: New lintsT-ASTType: Requires working with the AST

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions