diff options
| author | Mikhail Zabaluev <mikhail.zabaluev@gmail.com> | 2020-11-07 23:57:27 +0200 |
|---|---|---|
| committer | Mikhail Zabaluev <mikhail.zabaluev@gmail.com> | 2020-11-22 17:05:13 +0200 |
| commit | 9fc44239ec7e9f682797bd9e38368d0ec4457077 (patch) | |
| tree | 6b4131bc2dfa41f3c49f642dbed57fad836d3d34 /library/std/src | |
| parent | 53196a8bcfe80db551aa9417ce93766c7ee0e46d (diff) | |
| download | rust-9fc44239ec7e9f682797bd9e38368d0ec4457077.tar.gz rust-9fc44239ec7e9f682797bd9e38368d0ec4457077.zip | |
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.
Diffstat (limited to 'library/std/src')
| -rw-r--r-- | library/std/src/io/buffered/bufwriter.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/library/std/src/io/buffered/bufwriter.rs b/library/std/src/io/buffered/bufwriter.rs index d8d62c4b314..e42fa4297ef 100644 --- a/library/std/src/io/buffered/bufwriter.rs +++ b/library/std/src/io/buffered/bufwriter.rs @@ -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<()> { |
