Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions tokio-async-await/examples/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -25,14 +25,14 @@ name = "hyper"
path = "src/hyper.rs"

[dependencies]
tokio = { version = "0.1.0", path = "../..", features = ["async-await-preview"] }
tokio = { version = "0.1.18", features = ["async-await-preview"] }
futures = "0.1.23"
bytes = "0.4.9"
hyper = "0.12.8"

# Avoid using crates.io for Tokio dependencies
[patch.crates-io]
tokio = { path = "../.." }
tokio = { path = "../../tokio" }
tokio-async-await = { path = "../" }
tokio-codec = { path = "../../tokio-codec" }
tokio-current-thread = { path = "../../tokio-current-thread" }
Expand Down
12 changes: 6 additions & 6 deletions tokio-async-await/src/io/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ pub trait AsyncReadExt: AsyncRead {
///
/// # Examples
///
/// ```
/// ```edition2018
/// #![feature(async_await, await_macro, futures_api)]
/// tokio::run_async(async {
/// // The extension trait can also be imported with
Expand Down Expand Up @@ -58,7 +58,7 @@ pub trait AsyncReadExt: AsyncRead {
///
/// # Examples
///
/// ```
/// ```edition2018
/// #![feature(async_await, await_macro, futures_api)]
/// tokio::run_async(async {
/// // The extension trait can also be imported with
Expand All @@ -77,7 +77,7 @@ pub trait AsyncReadExt: AsyncRead {
///
/// ## EOF is hit before `buf` is filled
///
/// ```
/// ```edition2018
/// #![feature(async_await, await_macro, futures_api)]
/// tokio::run_async(async {
/// // The extension trait can also be imported with
Expand Down Expand Up @@ -109,7 +109,7 @@ pub trait AsyncWriteExt: AsyncWrite {
///
/// # Examples
///
/// ```
/// ```edition2018
/// #![feature(async_await, await_macro, futures_api)]
/// tokio::run_async(async {
/// // The extension trait can also be imported with
Expand Down Expand Up @@ -138,7 +138,7 @@ pub trait AsyncWriteExt: AsyncWrite {
///
/// # Examples
///
/// ```
/// ```edition2018
/// #![feature(async_await, await_macro, futures_api)]
/// tokio::run_async(async {
/// // The extension trait can also be imported with
Expand All @@ -162,7 +162,7 @@ pub trait AsyncWriteExt: AsyncWrite {
///
/// # Examples
///
/// ```
/// ```edition2018
/// #![feature(async_await, await_macro, futures_api)]
/// tokio::run_async(async {
/// // The extension trait can also be imported with
Expand Down
6 changes: 3 additions & 3 deletions tokio-async-await/src/stream/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,12 @@ pub trait StreamExt: Stream {
///
/// # Examples
///
/// ```
/// #![feature(await_macro, async_await)]
/// ```edition2018
/// #![feature(await_macro, async_await, futures_api)]
/// tokio::run_async(async {
/// // The extension trait can also be imported with
/// // `use tokio::prelude::*`.
/// use tokio::prelude::{stream, StreamExt};
/// use tokio::prelude::{stream, StreamAsyncExt};
///
/// let mut stream = stream::iter_ok::<_, ()>(1..3);
///
Expand Down