Skip to content
This repository was archived by the owner on May 28, 2025. It is now read-only.

Commit 9fc4423

Browse files
committed
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.
1 parent 53196a8 commit 9fc4423

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

library/std/src/io/buffered/bufwriter.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -383,7 +383,7 @@ impl<W: Write> Write for BufWriter<W> {
383383
}
384384

385385
fn is_write_vectored(&self) -> bool {
386-
self.get_ref().is_write_vectored()
386+
true
387387
}
388388

389389
fn flush(&mut self) -> io::Result<()> {

0 commit comments

Comments
 (0)