fix doc compile

Signed-off-by: Yoshua Wuyts <yoshuawuyts@gmail.com>
staging
Yoshua Wuyts 5 years ago
parent e1137345d4
commit 910801e2d6
No known key found for this signature in database
GPG Key ID: 24EA8164F96777ED

@ -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<usize>)
where
Self: Unpin,

@ -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<usize>)
where
Self: Unpin,

Loading…
Cancel
Save