Skip to content

redundant_closure should detect trivial method calls #3469

Closed
@asomers

Description

@asomers

The redundant_closure lint currently works for functions, but not for methods. It should also detect redundant closures like this: Some(x).map(x.foo()).

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

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