inline trivial (noop) flush calls
This commit is contained in:
parent
04abc370b9
commit
558f49d7aa
8 changed files with 13 additions and 0 deletions
|
|
@ -335,6 +335,7 @@ impl File {
|
|||
false
|
||||
}
|
||||
|
||||
#[inline]
|
||||
pub fn flush(&self) -> io::Result<()> {
|
||||
Ok(())
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1227,6 +1227,7 @@ impl File {
|
|||
self.0.write_vectored_at(bufs, offset)
|
||||
}
|
||||
|
||||
#[inline]
|
||||
pub fn flush(&self) -> io::Result<()> {
|
||||
Ok(())
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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(())
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue