Open matthiaskrgr opened 2 weeks ago
drawbacks: if the lint is in any way incorrectly written it could fail to observe that the filter()
function would reduce the number of items, or a flat_map
could increase it, or so on, and the function would have changed results as a result of the moved enumerate()
.
What it does
check for calls.
enumerate()
where the index is only passed through deeper down the iter chain without actually being usedAdvantage
simpler code
Drawbacks
No response
Example