-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Closed
Labels
A-lintArea: New lintsArea: New lints
Description
What it does
Title says it all, but it could be extended to Result
and other enum
s
Advantage
Drawbacks
If a lib has this lint, it could lead to public API breakage. However, it may be worth it, considering this lint could prevent further breakages
Example
fn f<T>(a: &Option<T>) {
let _ = a.as_ref();
}
Could be written as:
fn f<T>(a: Option<&T>) {
let _ = a;
}
Skgland, ARandomDev99, 0vercl0k, GtrMo and TornaxO7
Metadata
Metadata
Assignees
Labels
A-lintArea: New lintsArea: New lints