diff options
| author | bors <bors@rust-lang.org> | 2016-12-24 13:28:37 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2016-12-24 13:28:37 +0000 |
| commit | d86cf13316a885dbc78fc33becbc718c6ff3468c (patch) | |
| tree | f89e67ee711d0abfce9992231817a36cf254bc7b /src/liballoc_system | |
| parent | 8d65c8d64edeadcfcc210fd70f44249d02daec41 (diff) | |
| parent | ecc60106c9d95ce78205f689a662a52a0adeed6b (diff) | |
| download | rust-d86cf13316a885dbc78fc33becbc718c6ff3468c.tar.gz rust-d86cf13316a885dbc78fc33becbc718c6ff3468c.zip | |
Auto merge of #38062 - alexcrichton:fix-line-writer, r=brson
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 #37807
Diffstat (limited to 'src/liballoc_system')
0 files changed, 0 insertions, 0 deletions
