match_single_binding triggers in generated code #5362
Labels
C-bug
Category: Clippy is not doing the correct thing
good-first-issue
These issues are a good way to get started with Clippy
T-macros
Type: Issues with macros and macro expansion
Hi! I'm using rust-derivative, which appears to generate code that triggers
match_single_binding
; see rust-derivative#58 for a full report (version info, etc.).The developer considers this a Clippy bug, and I'm inclined to agree: the cited reason for this lint is "readability and needless complexity", which seems okay for macro-generated code. The discussion in #4949 seems to back me up.
P.S. Thanks for a great tool!
The text was updated successfully, but these errors were encountered: