Skip to content

Disable the unused-mut warning when variable is prefixed by underscore #6911

Closed
@pnkfelix

Description

@pnkfelix

See bstrie's comment on Issue 3083.

In short, the unused-mut warning added by pull request #5966 should work similarly to the unused variable detection: the warning should be disabled if you stick an underscore on the front of the identifier.

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-lintsArea: Lints (warnings about flaws in source code) such as unused_mut.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions