From 910801e2d6e9c23e88e26a5a2350a2055148441d Mon Sep 17 00:00:00 2001 From: Yoshua Wuyts Date: Fri, 6 Sep 2019 14:29:27 +0200 Subject: [PATCH] fix doc compile Signed-off-by: Yoshua Wuyts --- src/io/read/mod.rs | 4 ++-- src/io/write/mod.rs | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/io/read/mod.rs b/src/io/read/mod.rs index cf858b2..819f26e 100644 --- a/src/io/read/mod.rs +++ b/src/io/read/mod.rs @@ -10,7 +10,7 @@ use read_to_end::{read_to_end_internal, ReadToEndFuture}; use read_to_string::ReadToStringFuture; use read_vectored::ReadVectoredFuture; -use std::io::IoSliceMut; +use std::io; use std::mem; use cfg_if::cfg_if; @@ -86,7 +86,7 @@ pub trait Read { /// [`read`]: #tymethod.read fn read_vectored<'a>( &'a mut self, - bufs: &'a mut [IoSliceMut<'a>], + bufs: &'a mut [io::IoSliceMut<'a>], ) -> ret!('a, ReadVectoredFuture, io::Result) where Self: Unpin, diff --git a/src/io/write/mod.rs b/src/io/write/mod.rs index 98fd834..64cae42 100644 --- a/src/io/write/mod.rs +++ b/src/io/write/mod.rs @@ -8,7 +8,7 @@ use write::WriteFuture; use write_all::WriteAllFuture; use write_vectored::WriteVectoredFuture; -use std::io::IoSlice; +use std::io; use cfg_if::cfg_if; use futures_io::AsyncWrite; @@ -99,7 +99,7 @@ pub trait Write { /// [`write`]: #tymethod.write fn write_vectored<'a>( &'a mut self, - bufs: &'a [IoSlice<'a>], + bufs: &'a [io::IoSlice<'a>], ) -> ret!('a, WriteVectoredFuture, io::Result) where Self: Unpin,