Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Fix return value of `Write::write` impl for `Pipe` This should return the number of bytes written, which as implemented is the whole buffer. Without this, the default `write_all` implementation won't work correctly, which is a problem with c520a21. * Use `.write` instead of `printfl!` to write `""` Now that `printfl!` calls `write_all`, rather than `write`, this no longer works. The `write_all` implementation provided by the `Write` trait writes until the buffer of bytes left to write is empty, so `write` is never if an empty string is passed, and thus a `Pipe` doesn't send a message with `done`. There are probably better ways to deal with the APIs involved here, but this at least fixes the behavior.
- Loading branch information