Skip to content

New Lint: Suggest filter_map instead of flat_map<U=Option<_>> #2485

@scottmcm

Description

@scottmcm

If the closure passed to flat_map produces an Option, then filter_map does the same thing, but it does so with a much simpler implementation as it needs to keep less state.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions