new lint: using collect() to just exhaust an iterator

Should use a for loop instead.
This commit is contained in:
Georg Brandl 2015-08-30 13:10:59 +02:00
parent b72ef5a173
commit 16df79a054
4 changed files with 27 additions and 2 deletions

View file

@ -96,6 +96,7 @@ pub fn plugin_registrar(reg: &mut Registry) {
loops::EXPLICIT_ITER_LOOP,
loops::ITER_NEXT_LOOP,
loops::NEEDLESS_RANGE_LOOP,
loops::UNUSED_COLLECT,
loops::WHILE_LET_LOOP,
matches::MATCH_REF_PATS,
matches::SINGLE_MATCH,