Needless Return at the end of function inside a closure suggests invalid code #6501
Labels
C-bug
Category: Clippy is not doing the correct thing
I-false-positive
Issue: The lint was triggered on code it shouldn't have
I-suggestion-causes-error
Issue: The suggestions provided by this Lint cause an ICE/error when applied
This code:
is suggested to remove the return, like this:
Which is invalid rust code.
Meta
cargo clippy -V
: clippy 0.0.212 (bb1fbbf 2020-12-22)rustc -Vv
:The text was updated successfully, but these errors were encountered: