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:
Mikhail Zabaluev 2020-11-07 23:57:27 +02:00
parent 53196a8bcf
commit 9fc44239ec
1 changed files with 1 additions and 1 deletions

View File

@ -383,7 +383,7 @@ impl<W: Write> Write for BufWriter<W> {
}
fn is_write_vectored(&self) -> bool {
self.get_ref().is_write_vectored()
true
}
fn flush(&mut self) -> io::Result<()> {