clippy::redundant_closure false positive: laziness #4187
Labels
good first issue
These issues are a good way to get started with Clippy
L-suggestion
Lint: Improving, adding or fixing lint suggestions
Clippy warns me about redundant closure:
But the suggested transformation changes semantics: the original code executes
pf
only when the closure is executed; the suggested code executespf
immediately.The text was updated successfully, but these errors were encountered: