Skip to content

Suggest std::iter::{once, empty} #4559

@matthiasbeyer

Description

@matthiasbeyer

I don't know whether clippy is capable of doing this, but it would be nice to suggest std::iter::once() and std::iter::empty(), especially when things like vec![element].iter() (or similar) is used.

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-lintArea: New lintsE-mediumCall for participation: Medium difficulty level problem and requires some initial experience.L-complexityLint: Belongs in the complexity lint groupL-suggestionLint: Improving, adding or fixing lint suggestions

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions