Skip to content

New lint: and_then_some #4299

Closed
Closed
@ghost

Description

Name: and_then_some
Group: complexity

Warn about option.and_then(|o| Some(x)) and suggest replacing with option.map(|o| x).

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-lintArea: New lintsL-complexityLint: Belongs in the complexity lint groupL-suggestionLint: Improving, adding or fixing lint suggestionsgood 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