From 9fc44239ec7e9f682797bd9e38368d0ec4457077 Mon Sep 17 00:00:00 2001 From: Mikhail Zabaluev Date: Sat, 7 Nov 2020 23:57:27 +0200 Subject: [PATCH] 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. --- library/std/src/io/buffered/bufwriter.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/library/std/src/io/buffered/bufwriter.rs b/library/std/src/io/buffered/bufwriter.rs index d8d62c4b3144..e42fa4297ef5 100644 --- a/library/std/src/io/buffered/bufwriter.rs +++ b/library/std/src/io/buffered/bufwriter.rs @@ -383,7 +383,7 @@ impl Write for BufWriter { } fn is_write_vectored(&self) -> bool { - self.get_ref().is_write_vectored() + true } fn flush(&mut self) -> io::Result<()> {