Make handshake an async fn; other cleanup
This commit is contained in:
committed by
Sean McArthur
parent
ad7ffa795f
commit
b039ef25bc
@@ -177,7 +177,7 @@ pub struct Handshake<T, B: IntoBuf = Bytes> {
|
||||
/// # Examples
|
||||
///
|
||||
/// ```
|
||||
/// #![feature(async_await)]
|
||||
/// # #![feature(async_await)]
|
||||
/// # use futures::StreamExt;
|
||||
/// # use tokio_io::*;
|
||||
/// # use h2::server;
|
||||
@@ -314,7 +314,7 @@ const PREFACE: [u8; 24] = *b"PRI * HTTP/2.0\r\n\r\nSM\r\n\r\n";
|
||||
/// # Examples
|
||||
///
|
||||
/// ```
|
||||
/// #![feature(async_await)]
|
||||
/// # #![feature(async_await)]
|
||||
/// # use tokio_io::*;
|
||||
/// # use h2::server;
|
||||
/// # use h2::server::*;
|
||||
|
||||
Reference in New Issue
Block a user