Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

Stebalien
Copy link
Contributor

If LineWriter fails to flush, return the number of bytes written instead
of an error.

Fixes #32085

If LineWriter fails to flush, return the number of bytes written instead
of an error.

Fixes rust-lang#32085
@Stebalien
Copy link
Contributor Author

As this technically changes the behavior of LineWriter, this is a breaking change. How/should I label it?

@alexcrichton
Copy link
Member

Thanks! I think it's fine to call this a bugfix rather than a breaking change. Can you be sure to add a test for this though?

@Stebalien
Copy link
Contributor Author

@alexcrichton done.

@alexcrichton
Copy link
Member

@bors: r+ c516335

Thanks!

@alexcrichton alexcrichton self-assigned this Mar 8, 2016
@bors
Copy link
Collaborator

bors commented Mar 10, 2016

⌛ Testing commit c516335 with merge c1fb50f...

bors added a commit that referenced this pull request Mar 10, 2016
Never return an error after a partial write

If LineWriter fails to flush, return the number of bytes written instead
of an error.

Fixes #32085
@bors bors merged commit c516335 into rust-lang:master Mar 10, 2016
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.

3 participants