single_match should be smarter for known enums #327
Labels
C-enhancement
Category: Enhancement of lints, like adding more cases or adding help messages
good-first-issue
These issues are a good way to get started with Clippy
T-middle
Type: Probably requires verifiying types
this can be replaced with an if let, but we don't suggest it, because there's no wildcard. This makes sense for arbitrary enums -- replacing an exhaustive match with an if let can be problematic if the original enum gets updated. But for known enums like Option/Result/Cow, this isn't an issue.
The text was updated successfully, but these errors were encountered: