Skip to content

Commit 4dfa785

Browse files
committed
feat: make async Write::flush a required method
1 parent 353483c commit 4dfa785

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

embedded-io-async/src/lib.rs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -127,9 +127,7 @@ pub trait Write: ErrorType {
127127
async fn write(&mut self, buf: &[u8]) -> Result<usize, Self::Error>;
128128

129129
/// Flush this output stream, ensuring that all intermediately buffered contents reach their destination.
130-
async fn flush(&mut self) -> Result<(), Self::Error> {
131-
Ok(())
132-
}
130+
async fn flush(&mut self) -> Result<(), Self::Error>;
133131

134132
/// Write an entire buffer into this writer.
135133
///

0 commit comments

Comments
 (0)