match_single_binding: suggests broken code (missing curly braces) #5347
Labels
C-bug
Category: Clippy is not doing the correct thing
I-suggestion-causes-error
Issue: The suggestions provided by this Lint cause an ICE/error when applied
L-suggestion
Lint: Improving, adding or fixing lint suggestions
The suggested code does not compile,
we need curly braces around the let + return statement like this:
The text was updated successfully, but these errors were encountered: