diff options
| author | Vadim Petrochenkov <vadim.petrochenkov@gmail.com> | 2018-12-16 16:18:45 +0300 |
|---|---|---|
| committer | Vadim Petrochenkov <vadim.petrochenkov@gmail.com> | 2019-01-01 01:39:55 +0300 |
| commit | 8b1c424b6d1cb001907e0fc0401e5242e297a83e (patch) | |
| tree | 8006401a9b8ec44e9d42aee351ba2f2c36cd3141 /src/libstd/sys/windows | |
| parent | 6efaef61899f6551914156f69809aa7d5854399d (diff) | |
| download | rust-8b1c424b6d1cb001907e0fc0401e5242e297a83e.tar.gz rust-8b1c424b6d1cb001907e0fc0401e5242e297a83e.zip | |
privacy: Use common `DefId` visiting infra for all privacy visitors
Diffstat (limited to 'src/libstd/sys/windows')
| -rw-r--r-- | src/libstd/sys/windows/handle.rs | 5 | ||||
| -rw-r--r-- | src/libstd/sys/windows/stdio.rs | 5 |
2 files changed, 0 insertions, 10 deletions
diff --git a/src/libstd/sys/windows/handle.rs b/src/libstd/sys/windows/handle.rs index 7d12e0f6ef0..855efbd3eb5 100644 --- a/src/libstd/sys/windows/handle.rs +++ b/src/libstd/sys/windows/handle.rs @@ -160,11 +160,6 @@ impl RawHandle { } } - pub fn read_to_end(&self, buf: &mut Vec<u8>) -> io::Result<usize> { - let mut me = self; - (&mut me).read_to_end(buf) - } - pub fn write(&self, buf: &[u8]) -> io::Result<usize> { let mut amt = 0; let len = cmp::min(buf.len(), <c::DWORD>::max_value() as usize) as c::DWORD; diff --git a/src/libstd/sys/windows/stdio.rs b/src/libstd/sys/windows/stdio.rs index f331397db8c..a4f4bd22cd9 100644 --- a/src/libstd/sys/windows/stdio.rs +++ b/src/libstd/sys/windows/stdio.rs @@ -128,11 +128,6 @@ impl Stdin { // MemReader shouldn't error here since we just filled it utf8.read(buf) } - - pub fn read_to_end(&self, buf: &mut Vec<u8>) -> io::Result<usize> { - let mut me = self; - (&mut me).read_to_end(buf) - } } #[unstable(reason = "not public", issue = "0", feature = "fd_read")] |
