Improvement Idea: the ilter_next should also cover skip_while().next() #4036
Labels
C-enhancement
Category: Enhancement of lints, like adding more cases or adding help messages
L-complexity
Lint: Belongs in the complexity lint group
I recently realized that
skip_while(|i| !condition(i)).next()
does the same asfilter(|i| condition(i)).next()
and more importantly has the same intent.I propose to also lint
skip_while(...).next()
with the filter_next lint.The text was updated successfully, but these errors were encountered: