Skip to content

redundant_closure should be in the Perf group #3468

Open
@asomers

Description

@asomers

The redundant_closure lint should be in the Perf group. All those closures take code space. The optimizer can't combine closures, even if they're identical. (Perhaps it can for Option::map; I haven't checked. But definitely for Future::map it cannot).

> cargo +nightly clippy -V
clippy 0.0.212 (481f7880 2018-10-30)

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-categoryArea: Categorization of lintsS-needs-discussionStatus: Needs further discussion before merging or work can be started

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions