False positive for redundant_closure_call when called in a closure #5916
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
Minimal example:
create
is called in two spots, but on the firstx = create();
awarning: closure called just once immediately after it was declared
is emitted.Interestingly, the warning is not emitted when any statement is between the definitian and the first usage of the closure:
Meta
cargo clippy -V
:clippy 0.0.212 (9b88e0a86 2020-08-15)
rustc -Vv
:The text was updated successfully, but these errors were encountered: