corner cases for default_trait_access
#10936
Labels
C-enhancement
Category: Enhancement of lints, like adding more cases or adding help messages
Description
Currently for code like
or
where
foo
is a variable of typeOption<usize>
suggests to replace it with
Option::default()
, which is not wrong but suggestingNone
would be better. Can probably be extended to some other types in stdlib.Version
Additional Labels
No response
The text was updated successfully, but these errors were encountered: