"Convert match to let-else" assist should handle non-trivial patterns #13540
Labels
A-assists
A-pattern
pattern handling related things
C-feature
Category: feature request
S-actionable
Someone could pick this issue up and work on it right now
Currently, for code like
The "Convert match to let-else" assist doesn't trigger, because it only works with identifier patterns, but here we have
(x, y)
as the pattern. This is a pretty arbitrary limitation, and the assist should be able to turn it into:The text was updated successfully, but these errors were encountered: