Merge pull request #224 from seanmonstar/nop-flush

make TcpStream::flush() a noop
This commit is contained in:
Alex Crichton
2017-06-23 18:12:52 -05:00
committed by GitHub
+1 -1
View File
@@ -505,7 +505,7 @@ impl Write for TcpStream {
self.io.write(buf) self.io.write(buf)
} }
fn flush(&mut self) -> io::Result<()> { fn flush(&mut self) -> io::Result<()> {
self.io.flush() Ok(())
} }
} }