Skip to content

std: Update the std::io adaptors to proxy all methods - #22428

Merged
bors merged 1 commit into
rust-lang:masterfrom
erickt:io-wrappers
Feb 24, 2015
Merged

std: Update the std::io adaptors to proxy all methods#22428
bors merged 1 commit into
rust-lang:masterfrom
erickt:io-wrappers

Conversation

@erickt

@erickt erickt commented Feb 17, 2015

Copy link
Copy Markdown
Contributor

Also includes some minor optimizations to the Vec and slice writers to remove the unnecessary loop.

@rust-highfive

Copy link
Copy Markdown
Contributor

r? @aturon

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

Comment thread src/libstd/io/impls.rs

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

WriteZero seems like the wrong error for this.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@sfackler: yeah, I agree. I kept the WriteZero because that's the error the Read::write_all supermethod returns. The fact that I'm not doing the loop is more of an implementation detail. Is it worth making a PartialWrite error kind?

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is indeed what WriteZero is intended for, but I think PartialWrite is actually a better name for it! cc @alexcrichton

@aturon

aturon commented Feb 20, 2015

Copy link
Copy Markdown
Contributor

Thanks!

@bors: r+ ded93b1

@bors

bors commented Feb 21, 2015

Copy link
Copy Markdown
Collaborator

⌛ Testing commit ded93b1 with merge 2e7441f...

@bors

bors commented Feb 21, 2015

Copy link
Copy Markdown
Collaborator

💔 Test failed - auto-win-64-nopt-t

@alexcrichton

Copy link
Copy Markdown
Member

@bors: retry

Manishearth added a commit to Manishearth/rust that referenced this pull request Feb 24, 2015
 Also includes some minor optimizations to the Vec and slice writers to remove the unnecessary loop.
@bors
bors merged commit ded93b1 into rust-lang:master Feb 24, 2015
lnicola pushed a commit to lnicola/rust that referenced this pull request Jun 1, 2026
…s-take-2

internal: Actually ignore `workspace/diagnostic/refresh`
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

7 participants