Skip to content

clean up example on read_to_string - #84067

Merged
bors merged 1 commit into
masterfrom
steveklabnik-patch-1
Apr 12, 2021
Merged

clean up example on read_to_string#84067
bors merged 1 commit into
masterfrom
steveklabnik-patch-1

Conversation

@steveklabnik

Copy link
Copy Markdown
Contributor

This is the same thing, but simpler.

This came out of a comment from a user: https://news.ycombinator.com/item?id=25318117 but rather than hide the signature of main, I think a use plus not including the 'static makes more sense.

This is the same thing, but simpler.
@rust-highfive

Copy link
Copy Markdown
Contributor

r? @joshtriplett

(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 Apr 10, 2021
@joshtriplett

Copy link
Copy Markdown
Member

@bors r+ rollup

Seems reasonable to me.

@bors

bors commented Apr 10, 2021

Copy link
Copy Markdown
Collaborator

📌 Commit c2f4a5b has been approved by joshtriplett

@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 Apr 10, 2021
Dylan-DPC-zz pushed a commit to Dylan-DPC-zz/rust that referenced this pull request Apr 11, 2021
…oshtriplett
clean up example on read_to_string
This is the same thing, but simpler.
This came out of a comment from a user: https://news.ycombinator.com/item?id=25318117 but rather than hide the signature of main, I think a `use` plus not including the `'static` makes more sense.
bors added a commit to rust-lang-ci/rust that referenced this pull request Apr 12, 2021
Rollup of 7 pull requests
Successful merges:
- rust-lang#83669 (Issue 81508 fix)
- rust-lang#84014 (Improve trait/impl method discrepancy errors)
- rust-lang#84059 (Bump libc dependency of std to 0.2.93)
- rust-lang#84067 (clean up example on read_to_string)
- rust-lang#84079 (Improve test for `rustdoc::bare_urls` lint)
- rust-lang#84094 (Remove FixedSizeArray)
- rust-lang#84101 (rustdoc: Move crate loader to collect_intra_doc_links::early )
Failed merges:
r? `@ghost`
`@rustbot` modify labels: rollup
@bors
bors merged commit 269abd8 into masterApr 12, 2021
@bors
bors deleted the steveklabnik-patch-1 branch April 12, 2021 03:13
@rustbotrustbot added this to the 1.53.0 milestone Apr 12, 2021
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

@steveklabnik@rust-highfive@joshtriplett@bors@rustbot