You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Finds nested match or if let expressions where the patterns may be “collapsed” together without adding any branches.
Note that this lint is not intended to find all cases where nested match patterns can be merged, but only cases where merging would most likely make the code more readable.
What it does
Finds nested match or if let expressions where the patterns may be “collapsed” together without adding any branches.
Note that this lint is not intended to find all cases where nested match patterns can be merged, but only cases where merging would most likely make the code more readable.
Why is this bad?
It is unnecessarily verbose and complex.
Example
Use instead:
The text was updated successfully, but these errors were encountered: