impl prepare_uninitialized_buffer

This commit is contained in:
quininer 2018-08-17 13:07:26 +08:00
parent cf00bbb2f7
commit 482f3c3aa6
2 changed files with 6 additions and 2 deletions

View File

@ -48,7 +48,7 @@ impl<'a, 'b> Buf for VecBuf<'a, 'b> {
}
}
#[allow(needless_range_loop)]
#[cfg_attr(feature = "cargo-clippy", allow(needless_range_loop))]
fn bytes_vec<'c>(&'c self, dst: &mut [&'c IoVec]) -> usize {
let len = cmp::min(self.inner.len() - self.pos, dst.len());

View File

@ -52,7 +52,11 @@ impl<S, C> AsyncRead for TlsStream<S, C>
where
S: AsyncRead + AsyncWrite,
C: Session
{}
{
unsafe fn prepare_uninitialized_buffer(&self, _: &mut [u8]) -> bool {
false
}
}
impl<S, C> AsyncWrite for TlsStream<S, C>
where