redundant_closure_call triggered when closure is a macro parameter #11274
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
I-false-positive
Issue: The lint was triggered on code it shouldn't have
T-macros
Type: Issues with macros and macro expansion
Summary
Though after macro expansion the closure seems redundant, the closure is required for the macro invocation.
Lint Name
redundant_closure_call
Reproducer
I tried this code:
I saw this happen:
I expected to see this happen:
No warning.
Version
Additional Labels
No response
The text was updated successfully, but these errors were encountered: