Adjust client::Handshake's PhantomData since it doesn't own a buffer

This commit is contained in:
Sean McArthur
2019-06-25 12:04:43 -07:00
parent 3e345ac7b6
commit 19936721b8

View File

@@ -190,7 +190,7 @@ use std::usize;
pub struct Handshake<T, B = Bytes> { pub struct Handshake<T, B = Bytes> {
builder: Builder, builder: Builder,
inner: WriteAll<T, &'static [u8]>, inner: WriteAll<T, &'static [u8]>,
_marker: PhantomData<B>, _marker: PhantomData<fn(B)>,
} }
/// Initializes new HTTP/2.0 streams on a connection by sending a request. /// Initializes new HTTP/2.0 streams on a connection by sending a request.