check for `..` pattern in `redundant_pattern_matching` by y21 · Pull Request #10...
source link: https://github.com/rust-lang/rust-clippy/pull/10707
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
Conversation
Contributor
The redundant_pattern_matching
lint currently checks for if let Some(_) = ...
, but not for if let Some(..) = ...
.
This PR makes sure to also check for the ..
pattern in tuple structs.
It also found one such instance in clippy itself so that shows it's worth checking for this pattern as well
changelog: [redundant_pattern_matching
]: check for ..
pattern in tuple structs
Recommend
About Joyk
Aggregate valuable and interesting links.
Joyk means Joy of geeK