match_wild_err_arm
triggers weirdly
#5024
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
If you match on
Err(_)
then it triggers thematch_wild_err_arm
lint and clippy tells you to match on each error individually, but if you match onErr(_e)
it doesn't trigger at all, even though that's ignoring all possible errors just the same.Code that brought this up
_
will still match on everything, which is what this lint theoretically doesn't link, so alternate names should also still trigger the lintThe text was updated successfully, but these errors were encountered: