Make is_write_vectored return true for BufWriter
BufWriter provides an efficient implementation of write_vectored also when the underlying writer does not support vectored writes.
This commit is contained in:
parent
53196a8bcf
commit
9fc44239ec
1 changed files with 1 additions and 1 deletions
|
@ -383,7 +383,7 @@ impl<W: Write> Write for BufWriter<W> {
|
||||||
}
|
}
|
||||||
|
|
||||||
fn is_write_vectored(&self) -> bool {
|
fn is_write_vectored(&self) -> bool {
|
||||||
self.get_ref().is_write_vectored()
|
true
|
||||||
}
|
}
|
||||||
|
|
||||||
fn flush(&mut self) -> io::Result<()> {
|
fn flush(&mut self) -> io::Result<()> {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue