new lint: loop-match-break, which could be while-let (fixes #118)
This commit is contained in:
parent
92563a9970
commit
b72ef5a173
6 changed files with 129 additions and 15 deletions
|
|
@ -96,6 +96,7 @@ pub fn plugin_registrar(reg: &mut Registry) {
|
|||
loops::EXPLICIT_ITER_LOOP,
|
||||
loops::ITER_NEXT_LOOP,
|
||||
loops::NEEDLESS_RANGE_LOOP,
|
||||
loops::WHILE_LET_LOOP,
|
||||
matches::MATCH_REF_PATS,
|
||||
matches::SINGLE_MATCH,
|
||||
methods::OPTION_UNWRAP_USED,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue