Skip to content

cleanup more iterator usages (and other things) - #69650

Merged
bors merged 5 commits into
rust-lang:masterfrom
matthiaskrgr:clnp
Mar 4, 2020
Merged

cleanup more iterator usages (and other things)#69650
bors merged 5 commits into
rust-lang:masterfrom
matthiaskrgr:clnp

Conversation

@matthiaskrgr

Copy link
Copy Markdown
Member
  • 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.

@rust-highfive

Copy link
Copy Markdown
Contributor

r? @varkor

(rust_highfive has picked a reviewer for you, use r? to override)

@rust-highfiverust-highfive added the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. label Mar 3, 2020
@varkor

Copy link
Copy Markdown
Contributor

@bors r+ rollup

@bors

bors commented Mar 3, 2020

Copy link
Copy Markdown
Collaborator

📌 Commit 1018385 has been approved by varkor

@borsbors added S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. and removed S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. labels Mar 3, 2020
bors added a commit that referenced this pull request Mar 3, 2020
Rollup of 6 pull requests
Successful merges:
- #69565 (miri engine: turn some debug_assert into assert)
- #69621 (use question mark operator in a few places.)
- #69650 (cleanup more iterator usages (and other things))
- #69653 (use conditions directly)
- #69665 (Invoke OptimizerLastEPCallbacks in PreLinkThinLTO)
- #69670 (Add explanation for E0379)
Failed merges:
r? @ghost
@bors
bors merged commit 8ca3e59 into rust-lang:masterMar 4, 2020
@matthiaskrgr
matthiaskrgr deleted the clnp branch January 25, 2025 09:12
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

S-waiting-on-borsStatus: Waiting on bors to run and complete tests. Bors will change the label on completion.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants

@matthiaskrgr@rust-highfive@varkor@bors