-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Open
Labels
C-bugCategory: Clippy is not doing the correct thingCategory: Clippy is not doing the correct thingI-false-negativeIssue: The lint should have been triggered on code, but wasn'tIssue: The lint should have been triggered on code, but wasn'tgood first issueThese issues are a good way to get started with ClippyThese issues are a good way to get started with Clippy
Description
What it does
Suggests turning let _unused = returns_nothing(); to returns_nothing();
Advantage
Increases code hygiene
Drawbacks
None
Example
let _unused: () = returns_nothing();Could be written as:
returns_nothing();Comparison with existing lints
No similar lints were found
Additional Context
A quick Github search shows around 116 thousand instances of the aforementioned example
Metadata
Metadata
Assignees
Labels
C-bugCategory: Clippy is not doing the correct thingCategory: Clippy is not doing the correct thingI-false-negativeIssue: The lint should have been triggered on code, but wasn'tIssue: The lint should have been triggered on code, but wasn'tgood first issueThese issues are a good way to get started with ClippyThese issues are a good way to get started with Clippy