]> git.lizzy.rs Git - rust.git/commit - src/tools/clippy
Rollup merge of #69650 - matthiaskrgr:clnp, r=varkor
authorDylan DPC <dylan.dpc@gmail.com>
Tue, 3 Mar 2020 20:26:13 +0000 (21:26 +0100)
committerGitHub <noreply@github.com>
Tue, 3 Mar 2020 20:26:13 +0000 (21:26 +0100)
commit8ca3e59f8a768f9d246b69f629097a83af297fa1
treef8b051e5e83ec116e5d1cd48457679225dc35849
parent2cfab735941e336946e339297c83e4a8cc88a1d1
parent10183851fbfa68241a5eeaf9b3cc575172731a6d
Rollup merge of #69650 - matthiaskrgr:clnp, r=varkor

cleanup more iterator usages (and other things)

* Improve weird formatting by moving comment inside else-code block.
* Use .any(x) instead of .find(x).is_some() on iterators.
* Use .nth(x) instead of .skip(x).next() on iterators.
* Simplify conditions like  x + 1 <= y   to   x < y
* Use let instead of match to get value of enum with single variant.
src/librustc_codegen_ssa/back/link.rs
src/librustc_typeck/check/demand.rs