diff --git a/lib/src/pipe.rs b/lib/src/pipe.rs index ec88628..f3b8b34 100644 --- a/lib/src/pipe.rs +++ b/lib/src/pipe.rs @@ -70,9 +70,9 @@ pub(crate) trait Sink: Send { async fn wait_writable(&mut self) -> io::Result<()>; /// Flush all intermediately buffered contents. - /// By default, just waits for the writable state. + /// By default, does nothing. async fn flush(&mut self) -> io::Result<()> { - self.wait_writable().await + Ok(()) } }