forked from mirror/async-std
fix doc compile
Signed-off-by: Yoshua Wuyts <yoshuawuyts@gmail.com>
This commit is contained in:
parent
e1137345d4
commit
910801e2d6
2 changed files with 4 additions and 4 deletions
|
@ -10,7 +10,7 @@ use read_to_end::{read_to_end_internal, ReadToEndFuture};
|
||||||
use read_to_string::ReadToStringFuture;
|
use read_to_string::ReadToStringFuture;
|
||||||
use read_vectored::ReadVectoredFuture;
|
use read_vectored::ReadVectoredFuture;
|
||||||
|
|
||||||
use std::io::IoSliceMut;
|
use std::io;
|
||||||
use std::mem;
|
use std::mem;
|
||||||
|
|
||||||
use cfg_if::cfg_if;
|
use cfg_if::cfg_if;
|
||||||
|
@ -86,7 +86,7 @@ pub trait Read {
|
||||||
/// [`read`]: #tymethod.read
|
/// [`read`]: #tymethod.read
|
||||||
fn read_vectored<'a>(
|
fn read_vectored<'a>(
|
||||||
&'a mut self,
|
&'a mut self,
|
||||||
bufs: &'a mut [IoSliceMut<'a>],
|
bufs: &'a mut [io::IoSliceMut<'a>],
|
||||||
) -> ret!('a, ReadVectoredFuture, io::Result<usize>)
|
) -> ret!('a, ReadVectoredFuture, io::Result<usize>)
|
||||||
where
|
where
|
||||||
Self: Unpin,
|
Self: Unpin,
|
||||||
|
|
|
@ -8,7 +8,7 @@ use write::WriteFuture;
|
||||||
use write_all::WriteAllFuture;
|
use write_all::WriteAllFuture;
|
||||||
use write_vectored::WriteVectoredFuture;
|
use write_vectored::WriteVectoredFuture;
|
||||||
|
|
||||||
use std::io::IoSlice;
|
use std::io;
|
||||||
|
|
||||||
use cfg_if::cfg_if;
|
use cfg_if::cfg_if;
|
||||||
use futures_io::AsyncWrite;
|
use futures_io::AsyncWrite;
|
||||||
|
@ -99,7 +99,7 @@ pub trait Write {
|
||||||
/// [`write`]: #tymethod.write
|
/// [`write`]: #tymethod.write
|
||||||
fn write_vectored<'a>(
|
fn write_vectored<'a>(
|
||||||
&'a mut self,
|
&'a mut self,
|
||||||
bufs: &'a [IoSlice<'a>],
|
bufs: &'a [io::IoSlice<'a>],
|
||||||
) -> ret!('a, WriteVectoredFuture, io::Result<usize>)
|
) -> ret!('a, WriteVectoredFuture, io::Result<usize>)
|
||||||
where
|
where
|
||||||
Self: Unpin,
|
Self: Unpin,
|
||||||
|
|
Loading…
Reference in a new issue