You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
LeSeulArtichaut
changed the title
Add lint checking for no-op uses of {Option,Result}::as_deref
Add lint checking for no-op uses of {Option,Result}::{as_deref,as_deref_mut}Aug 16, 2021
camsteffen
added
E-medium
Call for participation: Medium difficulty level problem and requires some initial experience.
good-first-issue
These issues are a good way to get started with Clippy
and removed
E-medium
Call for participation: Medium difficulty level problem and requires some initial experience.
labels
Aug 23, 2021
Result<T,E>as_deref to Result<&<T as Deref>::Target, &E>
Due to &E is not E, we shouldn't lint on Result.
LeSeulArtichaut
changed the title
Add lint checking for no-op uses of {Option,Result}::{as_deref,as_deref_mut}
Add lint checking for no-op uses of Option::{as_deref,as_deref_mut}Aug 24, 2021
What it does
Checks for no-op uses of
Option::{as_deref,as_deref_mut}
.Categories (optional)
complexity
What is the advantage of the recommended code over the original code
Removes useless code, removing clutter and improving readability.
Drawbacks
None.
Example
Could be written as:
The text was updated successfully, but these errors were encountered: