chore: async_await is stable on nightly
This commit is contained in:
committed by
Sean McArthur
parent
b2c5d7f0bb
commit
85b1f669c0
@@ -65,7 +65,6 @@
|
||||
//! # Example
|
||||
//!
|
||||
//! ```rust, no_run
|
||||
//! #![feature(async_await)]
|
||||
//!
|
||||
//! use h2::client;
|
||||
//!
|
||||
@@ -212,7 +211,6 @@ pub struct ReadySendRequest<B: IntoBuf> {
|
||||
/// # Examples
|
||||
///
|
||||
/// ```
|
||||
/// # #![feature(async_await)]
|
||||
/// # use tokio_io::*;
|
||||
/// # use h2::client;
|
||||
/// # use h2::client::*;
|
||||
@@ -291,7 +289,6 @@ pub struct PushPromises {
|
||||
/// # Examples
|
||||
///
|
||||
/// ```
|
||||
/// # #![feature(async_await)]
|
||||
/// # use tokio_io::*;
|
||||
/// # use h2::client::*;
|
||||
/// # use bytes::Bytes;
|
||||
@@ -373,7 +370,6 @@ where
|
||||
/// # Examples
|
||||
///
|
||||
/// ```rust
|
||||
/// # #![feature(async_await)]
|
||||
/// # use h2::client::*;
|
||||
/// # use http::*;
|
||||
/// # async fn doc(send_request: SendRequest<&'static [u8]>)
|
||||
@@ -433,7 +429,6 @@ where
|
||||
/// Sending a request with no body
|
||||
///
|
||||
/// ```rust
|
||||
/// # #![feature(async_await)]
|
||||
/// # use h2::client::*;
|
||||
/// # use http::*;
|
||||
/// # async fn doc(send_request: SendRequest<&'static [u8]>)
|
||||
@@ -458,7 +453,6 @@ where
|
||||
/// Sending a request with a body and trailers
|
||||
///
|
||||
/// ```rust
|
||||
/// # #![feature(async_await)]
|
||||
/// # use h2::client::*;
|
||||
/// # use http::*;
|
||||
/// # async fn doc(send_request: SendRequest<&'static [u8]>)
|
||||
@@ -604,7 +598,6 @@ impl Builder {
|
||||
/// # Examples
|
||||
///
|
||||
/// ```
|
||||
/// # #![feature(async_await)]
|
||||
/// # use tokio_io::*;
|
||||
/// # use h2::client::*;
|
||||
/// # use bytes::Bytes;
|
||||
@@ -647,7 +640,6 @@ impl Builder {
|
||||
/// # Examples
|
||||
///
|
||||
/// ```
|
||||
/// # #![feature(async_await)]
|
||||
/// # use tokio_io::*;
|
||||
/// # use h2::client::*;
|
||||
/// # use bytes::Bytes;
|
||||
@@ -683,7 +675,6 @@ impl Builder {
|
||||
/// # Examples
|
||||
///
|
||||
/// ```
|
||||
/// # #![feature(async_await)]
|
||||
/// # use tokio_io::*;
|
||||
/// # use h2::client::*;
|
||||
/// # use bytes::Bytes;
|
||||
@@ -718,7 +709,6 @@ impl Builder {
|
||||
/// # Examples
|
||||
///
|
||||
/// ```
|
||||
/// # #![feature(async_await)]
|
||||
/// # use tokio_io::*;
|
||||
/// # use h2::client::*;
|
||||
/// # use bytes::Bytes;
|
||||
@@ -759,7 +749,6 @@ impl Builder {
|
||||
/// # Examples
|
||||
///
|
||||
/// ```
|
||||
/// # #![feature(async_await)]
|
||||
/// # use tokio_io::*;
|
||||
/// # use h2::client::*;
|
||||
/// # use bytes::Bytes;
|
||||
@@ -809,7 +798,6 @@ impl Builder {
|
||||
/// # Examples
|
||||
///
|
||||
/// ```
|
||||
/// # #![feature(async_await)]
|
||||
/// # use tokio_io::*;
|
||||
/// # use h2::client::*;
|
||||
/// # use bytes::Bytes;
|
||||
@@ -851,7 +839,6 @@ impl Builder {
|
||||
/// # Examples
|
||||
///
|
||||
/// ```
|
||||
/// # #![feature(async_await)]
|
||||
/// # use tokio_io::*;
|
||||
/// # use h2::client::*;
|
||||
/// # use bytes::Bytes;
|
||||
@@ -897,7 +884,6 @@ impl Builder {
|
||||
/// # Examples
|
||||
///
|
||||
/// ```
|
||||
/// # #![feature(async_await)]
|
||||
/// # use tokio_io::*;
|
||||
/// # use h2::client::*;
|
||||
/// # use bytes::Bytes;
|
||||
@@ -943,7 +929,6 @@ impl Builder {
|
||||
/// # Examples
|
||||
///
|
||||
/// ```
|
||||
/// # #![feature(async_await)]
|
||||
/// # use tokio_io::*;
|
||||
/// # use h2::client::*;
|
||||
/// # use std::time::Duration;
|
||||
@@ -982,7 +967,6 @@ impl Builder {
|
||||
/// # Examples
|
||||
///
|
||||
/// ```
|
||||
/// # #![feature(async_await)]
|
||||
/// # use tokio_io::*;
|
||||
/// # use h2::client::*;
|
||||
/// # use std::time::Duration;
|
||||
@@ -1042,7 +1026,6 @@ impl Builder {
|
||||
/// Basic usage:
|
||||
///
|
||||
/// ```
|
||||
/// # #![feature(async_await)]
|
||||
/// # use tokio_io::*;
|
||||
/// # use h2::client::*;
|
||||
/// # use bytes::Bytes;
|
||||
@@ -1064,7 +1047,6 @@ impl Builder {
|
||||
/// type will be `&'static [u8]`.
|
||||
///
|
||||
/// ```
|
||||
/// # #![feature(async_await)]
|
||||
/// # use tokio_io::*;
|
||||
/// # use h2::client::*;
|
||||
/// #
|
||||
@@ -1119,7 +1101,6 @@ impl Default for Builder {
|
||||
/// # Examples
|
||||
///
|
||||
/// ```
|
||||
/// # #![feature(async_await)]
|
||||
/// # use tokio_io::*;
|
||||
/// # use h2::client;
|
||||
/// # use h2::client::*;
|
||||
|
||||
@@ -81,7 +81,6 @@
|
||||
#![doc(html_root_url = "https://docs.rs/h2/0.1.25")]
|
||||
#![deny(missing_debug_implementations, missing_docs)]
|
||||
#![cfg_attr(test, deny(warnings))]
|
||||
#![feature(async_await)]
|
||||
|
||||
macro_rules! proto_err {
|
||||
(conn: $($msg:tt)+) => {
|
||||
|
||||
@@ -64,7 +64,6 @@
|
||||
//! will use the HTTP/2.0 protocol without prior negotiation.
|
||||
//!
|
||||
//! ```no_run
|
||||
//! #![feature(async_await)]
|
||||
//! use h2::server;
|
||||
//! use http::{Response, StatusCode};
|
||||
//! use tokio::net::TcpListener;
|
||||
@@ -175,7 +174,6 @@ pub struct Handshake<T, B: IntoBuf = Bytes> {
|
||||
/// # Examples
|
||||
///
|
||||
/// ```
|
||||
/// # #![feature(async_await)]
|
||||
/// # use tokio_io::*;
|
||||
/// # use h2::server;
|
||||
/// # use h2::server::*;
|
||||
@@ -311,7 +309,6 @@ const PREFACE: [u8; 24] = *b"PRI * HTTP/2.0\r\n\r\nSM\r\n\r\n";
|
||||
/// # Examples
|
||||
///
|
||||
/// ```
|
||||
/// # #![feature(async_await)]
|
||||
/// # use tokio_io::*;
|
||||
/// # use h2::server;
|
||||
/// # use h2::server::*;
|
||||
|
||||
@@ -268,7 +268,6 @@ impl<B: IntoBuf> SendStream<B> {
|
||||
/// is sent. For example:
|
||||
///
|
||||
/// ```rust
|
||||
/// # #![feature(async_await)]
|
||||
/// # use h2::*;
|
||||
/// # async fn doc(mut send_stream: SendStream<&'static [u8]>) {
|
||||
/// send_stream.reserve_capacity(100);
|
||||
@@ -571,7 +570,6 @@ impl PingPong {
|
||||
/// # Example
|
||||
///
|
||||
/// ```
|
||||
/// # #![feature(async_await)]
|
||||
/// # async fn doc(mut ping_pong: h2::PingPong) {
|
||||
/// // let mut ping_pong = ...
|
||||
///
|
||||
|
||||
Reference in New Issue
Block a user