impl prepare_uninitialized_buffer
This commit is contained in:
parent
cf00bbb2f7
commit
482f3c3aa6
@ -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());
|
||||
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user