mirror of
https://github.com/rust-lang/rust.git
synced 2025-09-28 13:46:03 +00:00

`Ok(0)` is indeed something the caller may interpret as an error, but that's the *correct* thing to return if the writer can't accept any more bytes. (cherry picked from commit 5210f482d7309004c0ff3f6306f052f8d5adb67b)