-
Notifications
You must be signed in to change notification settings - Fork 13.6k
Closed
Labels
A-lintsArea: Lints (warnings about flaws in source code) such as unused_mut.Area: Lints (warnings about flaws in source code) such as unused_mut.C-enhancementCategory: An issue proposing an enhancement or a PR with one.Category: An issue proposing an enhancement or a PR with one.
Description
I just ran rustfix on https://github.com/space-wizards/bsdiff-rs and noticed that the built-in unused_parens lint has no suggestions.
Suggesting the underlined span without the surrounding parentheses should be enough.
warning: unnecessary parentheses around assigned value
--> src/diff.rs:552:21
|
552 | lenf += (lens - overlap);
| ^^^^^^^^^^^^^^^^
|
= note: #[warn(unused_parens)] on by default
Metadata
Metadata
Assignees
Labels
A-lintsArea: Lints (warnings about flaws in source code) such as unused_mut.Area: Lints (warnings about flaws in source code) such as unused_mut.C-enhancementCategory: An issue proposing an enhancement or a PR with one.Category: An issue proposing an enhancement or a PR with one.