Skip to content

doc: Use .copied() instead of .cloned() in Vec example - #67180

Merged
bors merged 1 commit into
rust-lang:masterfrom
meithecatte:vec-doc-copied
Dec 11, 2019
Merged

doc: Use .copied() instead of .cloned() in Vec example#67180
bors merged 1 commit into
rust-lang:masterfrom
meithecatte:vec-doc-copied

Conversation

@meithecatte

Copy link
Copy Markdown
Contributor

No description provided.

@rust-highfive

Copy link
Copy Markdown
Contributor

r? @shepmaster

(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 Dec 9, 2019
@Dylan-DPC-zz

Copy link
Copy Markdown

r? @Dylan-DPC

@Dylan-DPC-zz

Copy link
Copy Markdown

@bors r+ rollup

@bors

bors commented Dec 10, 2019

Copy link
Copy Markdown
Collaborator

📌 Commit ecd9307 has been approved by Dylan-DPC

@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 Dec 10, 2019
@tshepang

Copy link
Copy Markdown
Member

Why would one use .copied instead of .cloned?

JohnTitor added a commit to JohnTitor/rust that referenced this pull request Dec 10, 2019
doc: Use .copied() instead of .cloned() in Vec example
None
@JohnTitorJohnTitor mentioned this pull request Dec 10, 2019
@sugar700

Copy link
Copy Markdown
Contributor

@tshepangcopied is more specific and implies it's not expensive.

bors added a commit that referenced this pull request Dec 11, 2019
Rollup of 9 pull requests
Successful merges:
- #66377 (Update RELEASES.md for 1.40.0)
- #67134 (Ensure that we get a hard error on generic ZST constants if their bod…)
- #67152 (Sort auto trait and blanket implementations display)
- #67154 (Fix typos in src/libcore/alloc.rs docs)
- #67168 (corrected comment in E0478)
- #67178 (Move non clean impls items)
- #67180 (doc: Use .copied() instead of .cloned() in Vec example)
- #67181 (Update hashmap doc)
- #67193 (In which we start tracking polonius in `-Z self-profile`)
Failed merges:
r? @ghost
@bors
bors merged commit ecd9307 into rust-lang:masterDec 11, 2019
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.

7 participants

@meithecatte@rust-highfive@Dylan-DPC-zz@bors@tshepang@sugar700@shepmaster