We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a0411e2 commit c71e73eCopy full SHA for c71e73e
library/std/src/io/impls.rs
@@ -441,14 +441,12 @@ impl<A: Allocator> Read for VecDeque<u8, A> {
441
impl<A: Allocator> Write for VecDeque<u8, A> {
442
#[inline]
443
fn write(&mut self, buf: &[u8]) -> io::Result<usize> {
444
- self.reserve(buf.len());
445
self.extend(buf);
446
Ok(buf.len())
447
}
448
449
450
fn write_all(&mut self, buf: &[u8]) -> io::Result<()> {
451
452
453
Ok(())
454
0 commit comments