Skip to content

Fix clippy warnings - #64942

Merged
bors merged 1 commit into
rust-lang:masterfrom
JohnTitor:fix-clippy
Oct 2, 2019
Merged

Fix clippy warnings#64942
bors merged 1 commit into
rust-lang:masterfrom
JohnTitor:fix-clippy

Conversation

@JohnTitor

Copy link
Copy Markdown
Member
  • Use match instead of if chain
  • Remove redundant into_iter()
  • Use copied() instead of map()

etc.

@rust-highfive

Copy link
Copy Markdown
Contributor

r? @cramertj

(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 Oct 1, 2019
Comment threadsrc/librustc_apfloat/ieee.rs Outdated
Comment threadsrc/librustc_apfloat/ieee.rs Outdated
@cramertj

Copy link
Copy Markdown
Member

r? @eddyb

@rust-highfiverust-highfive assigned eddyb and unassigned cramertjOct 1, 2019
@eddyb

eddyb commented Oct 1, 2019

Copy link
Copy Markdown
Contributor

@bors r+ rollup

@bors

bors commented Oct 1, 2019

Copy link
Copy Markdown
Collaborator

📌 Commit f10d2e2 has been approved by eddyb

@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 Oct 1, 2019
tmandry added a commit to tmandry/rust that referenced this pull request Oct 2, 2019
Fix clippy warnings
* Use `match` instead of `if` chain
* Remove redundant `into_iter()`
* Use `copied()` instead of `map()`
etc.
@tmandrytmandry mentioned this pull request Oct 2, 2019
bors added a commit that referenced this pull request Oct 2, 2019
Rollup of 11 pull requests
Successful merges:
- #64649 (Avoid ICE on return outside of fn with literal array)
- #64722 (Make all alt builders produce parallel-enabled compilers)
- #64801 (Avoid `chain()` in `find_constraint_paths_between_regions()`.)
- #64805 (Still more `ObligationForest` improvements.)
- #64840 (SelfProfiler API refactoring and part one of event review)
- #64885 (use try_fold instead of try_for_each to reduce compile time)
- #64942 (Fix clippy warnings)
- #64952 (Update cargo.)
- #64974 (Fix zebra-striping in generic dataflow visualization)
- #64978 (Fully clear `HandlerInner` in `Handler::reset_err_count`)
- #64979 (Update books)
Failed merges:
- #64959 (syntax: improve parameter without type suggestions)
r? @ghost
@bors
bors merged commit f10d2e2 into rust-lang:masterOct 2, 2019
@JohnTitor
JohnTitor deleted the fix-clippy branch October 2, 2019 10:03
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.

6 participants

@JohnTitor@rust-highfive@cramertj@eddyb@bors@Centril