Skip to content

idea: Combination of str_to_string and needless_closure #317

Closed
@llogiq

Description

@llogiq

Currently, the str_to_string lint and the needless_closure lint miss the following: x.map(|s| s.to_string()) (where x is an iterator of &str). This can be replaced with x.map(str::to_owned), to both remove the closure and change the function.

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-lintArea: New lintsE-mediumCall for participation: Medium difficulty level problem and requires some initial experience.T-middleType: Probably requires verifiying types

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions