-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Closed
Labels
A-documentationArea: Adding or improving documentationArea: Adding or improving documentationC-enhancementCategory: Enhancement of lints, like adding more cases or adding help messagesCategory: Enhancement of lints, like adding more cases or adding help messagesgood first issueThese issues are a good way to get started with ClippyThese issues are a good way to get started with Clippy
Description
The match_wild_err_arm lint documentation compares Err(_)
to Java with catch(Exception)
, but it is nothing like it. While the Java version does catch all exceptions, the Rust version can only catch one error type.
Even the warning message provided is misguided. It recommends matching each error separately, but there is only one error to match.
This makes this lint not really helpful. Or am I missing something?
elichai
Metadata
Metadata
Assignees
Labels
A-documentationArea: Adding or improving documentationArea: Adding or improving documentationC-enhancementCategory: Enhancement of lints, like adding more cases or adding help messagesCategory: Enhancement of lints, like adding more cases or adding help messagesgood first issueThese issues are a good way to get started with ClippyThese issues are a good way to get started with Clippy