C-bugI-false-negativegood first issue
仓库指标
- 星标
- (10,406 个星标)
- PR 合并指标
- (PR 指标待抓取)
描述
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