diff options
| author | DrMeepster <19316085+DrMeepster@users.noreply.github.com> | 2021-01-17 22:28:18 -0800 |
|---|---|---|
| committer | DrMeepster <19316085+DrMeepster@users.noreply.github.com> | 2021-11-02 22:47:20 -0700 |
| commit | 98c6200b1615e6a40fd63984f81bd55d589b42a5 (patch) | |
| tree | b74676c6ccc86d5877173250d255bd9d55400ee7 /library/std/src/io/stdio.rs | |
| parent | 3802025f400af7817ba4874587e6a2df95abd65d (diff) | |
| download | rust-98c6200b1615e6a40fd63984f81bd55d589b42a5.tar.gz rust-98c6200b1615e6a40fd63984f81bd55d589b42a5.zip | |
read_buf
Diffstat (limited to 'library/std/src/io/stdio.rs')
| -rw-r--r-- | library/std/src/io/stdio.rs | 16 |
1 files changed, 1 insertions, 15 deletions
diff --git a/library/std/src/io/stdio.rs b/library/std/src/io/stdio.rs index f7fc23c1e82..9888d3a09c4 100644 --- a/library/std/src/io/stdio.rs +++ b/library/std/src/io/stdio.rs @@ -7,7 +7,7 @@ use crate::io::prelude::*; use crate::cell::{Cell, RefCell}; use crate::fmt; -use crate::io::{self, BufReader, Initializer, IoSlice, IoSliceMut, LineWriter, Lines, Split}; +use crate::io::{self, BufReader, IoSlice, IoSliceMut, LineWriter, Lines, Split}; use crate::lazy::SyncOnceCell; use crate::pin::Pin; use crate::sync::atomic::{AtomicBool, Ordering}; @@ -108,11 +108,6 @@ impl Read for StdinRaw { self.0.is_read_vectored() } - #[inline] - unsafe fn initializer(&self) -> Initializer { - Initializer::nop() - } - fn read_to_end(&mut self, buf: &mut Vec<u8>) -> io::Result<usize> { handle_ebadf(self.0.read_to_end(buf), 0) } @@ -514,10 +509,6 @@ impl Read for Stdin { fn is_read_vectored(&self) -> bool { self.lock().is_read_vectored() } - #[inline] - unsafe fn initializer(&self) -> Initializer { - Initializer::nop() - } fn read_to_end(&mut self, buf: &mut Vec<u8>) -> io::Result<usize> { self.lock().read_to_end(buf) } @@ -552,11 +543,6 @@ impl Read for StdinLock<'_> { self.inner.is_read_vectored() } - #[inline] - unsafe fn initializer(&self) -> Initializer { - Initializer::nop() - } - fn read_to_end(&mut self, buf: &mut Vec<u8>) -> io::Result<usize> { self.inner.read_to_end(buf) } |
