1
Fork 0

inline trivial (noop) flush calls

This commit is contained in:
Thom Chiovoloni 2023-07-28 18:09:12 -07:00
parent 04abc370b9
commit 558f49d7aa
No known key found for this signature in database
8 changed files with 13 additions and 0 deletions

View file

@ -280,6 +280,7 @@ impl Write for ChildStdin {
io::Write::is_write_vectored(&&*self)
}
#[inline]
fn flush(&mut self) -> io::Result<()> {
(&*self).flush()
}
@ -299,6 +300,7 @@ impl Write for &ChildStdin {
self.inner.is_write_vectored()
}
#[inline]
fn flush(&mut self) -> io::Result<()> {
Ok(())
}