Extend while_let_loop
to warn even if there are statements after match
#262
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
T-AST
Type: Requires working with the AST
The implementation of
while_let_loop
is incomplete. In cases when additional statements follow thematch
, such as the following:the loop can still be replaced with
while let
These snippets are slightly different in theory, but identical in practice.
The text was updated successfully, but these errors were encountered: