Skip to content

Change a flat_map with 0/1-element vecs to a filter_map - #55476

Merged
bors merged 1 commit into
rust-lang:masterfrom
ljedrz:flat_map_to_filter_map
Oct 30, 2018
Merged

Change a flat_map with 0/1-element vecs to a filter_map#55476
bors merged 1 commit into
rust-lang:masterfrom
ljedrz:flat_map_to_filter_map

Conversation

@ljedrz

Copy link
Copy Markdown
Contributor

No need to use vectors in this case - Options are quite sufficient.

@rust-highfive

Copy link
Copy Markdown
Contributor

r? @eddyb

(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 29, 2018
@cramertj

Copy link
Copy Markdown
Member

@bors r+ rollup

@bors

bors commented Oct 29, 2018

Copy link
Copy Markdown
Collaborator

📌 Commit bb3e77d has been approved by cramertj

@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 29, 2018
kennytm added a commit to kennytm/rust that referenced this pull request Oct 30, 2018
…amertj
Change a flat_map with 0/1-element vecs to a filter_map
No need to use vectors in this case - `Option`s are quite sufficient.
@kennytmkennytm mentioned this pull request Oct 30, 2018
bors added a commit that referenced this pull request Oct 30, 2018
Rollup of 12 pull requests
Successful merges:
- #54885 (Don't lint 'unused_parens` on `if (break _) { .. }`)
- #55205 (Improve a few cases of collecting to an FxHash(Map/Set))
- #55450 (msp430: remove the whole Atomic* API)
- #55459 (Add UI test for #49296)
- #55472 (Use opt.take() instead of mem::replace(opt, None))
- #55473 (Take advantage of impl Iterator in (transitive/elaborate)_bounds)
- #55474 (Fix validation false positive)
- #55476 (Change a flat_map with 0/1-element vecs to a filter_map)
- #55487 (Adjust Ids of path segments in visibility modifiers)
- #55493 (Doc fixes)
- #55494 (borrowck=migrate must look at parents of closures)
- #55496 (Update clippy)
Failed merges:
r? @ghost
@bors
bors merged commit bb3e77d into rust-lang:masterOct 30, 2018
@ljedrz
ljedrz deleted the flat_map_to_filter_map branch October 30, 2018 14:23
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.

5 participants

@ljedrz@rust-highfive@cramertj@bors@eddyb