about summary refs log tree commit diff
path: root/src/test/rustdoc-ui/coverage/json.rs
diff options
context:
space:
mode:
authorDylan DPC <dylan.dpc@gmail.com>2020-03-03 21:26:13 +0100
committerGitHub <noreply@github.com>2020-03-03 21:26:13 +0100
commit8ca3e59f8a768f9d246b69f629097a83af297fa1 (patch)
treef8b051e5e83ec116e5d1cd48457679225dc35849 /src/test/rustdoc-ui/coverage/json.rs
parent2cfab735941e336946e339297c83e4a8cc88a1d1 (diff)
parent10183851fbfa68241a5eeaf9b3cc575172731a6d (diff)
downloadrust-8ca3e59f8a768f9d246b69f629097a83af297fa1.tar.gz
rust-8ca3e59f8a768f9d246b69f629097a83af297fa1.zip
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.
Diffstat (limited to 'src/test/rustdoc-ui/coverage/json.rs')
0 files changed, 0 insertions, 0 deletions