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

@ -335,6 +335,7 @@ impl File {
false
}
#[inline]
pub fn flush(&self) -> io::Result<()> {
Ok(())
}

View file

@ -1227,6 +1227,7 @@ impl File {
self.0.write_vectored_at(bufs, offset)
}
#[inline]
pub fn flush(&self) -> io::Result<()> {
Ok(())
}

View file

@ -54,6 +54,7 @@ impl io::Write for Stdout {
true
}
#[inline]
fn flush(&mut self) -> io::Result<()> {
Ok(())
}
@ -81,6 +82,7 @@ impl io::Write for Stderr {
true
}
#[inline]
fn flush(&mut self) -> io::Result<()> {
Ok(())
}