Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

std: Fix partial writes in LineWriter #38062

Merged
merged 1 commit into from
Dec 24, 2016

Commits on Nov 28, 2016

  1. std: Fix partial writes in LineWriter

    Previously the `LineWriter` could successfully write some bytes but then fail to
    report that it has done so. Additionally, an erroneous flush after a successful
    write was permanently ignored. This commit fixes these two issues by (a)
    maintaining a `need_flush` flag to indicate whether a flush should be the first
    operation in `LineWriter::write` and (b) avoiding returning an error once some
    bytes have been successfully written.
    
    Closes rust-lang#37807
    alexcrichton committed Nov 28, 2016
    Configuration menu
    Copy the full SHA
    ecc6010 View commit details
    Browse the repository at this point in the history