From 7039f02bb2c4a5cc75a21ad912175741af195b3d Mon Sep 17 00:00:00 2001 From: Carl Lerche Date: Fri, 22 Feb 2019 17:15:42 -0800 Subject: [PATCH] Bump tokio-async-await to 0.1.6 (#921) --- tokio-async-await/Cargo.toml | 4 ++-- tokio-async-await/README.md | 2 +- tokio-async-await/examples/src/chat.rs | 2 +- tokio-async-await/examples/src/echo_server.rs | 2 +- tokio-async-await/src/lib.rs | 2 +- 5 files changed, 6 insertions(+), 6 deletions(-) diff --git a/tokio-async-await/Cargo.toml b/tokio-async-await/Cargo.toml index ae9528d2d..50eee67d2 100644 --- a/tokio-async-await/Cargo.toml +++ b/tokio-async-await/Cargo.toml @@ -3,12 +3,12 @@ name = "tokio-async-await" # When releasing to crates.io: # - Update html_root_url. -version = "0.1.5" +version = "0.1.6" authors = ["Carl Lerche "] license = "MIT" repository = "https://github.com/tokio-rs/tokio" homepage = "https://tokio.rs" -documentation = "https://docs.rs/tokio-async-await/0.1.3" +documentation = "https://docs.rs/tokio-async-await/0.1.6" description = """ Experimental async/await support for Tokio """ diff --git a/tokio-async-await/README.md b/tokio-async-await/README.md index f76746165..f61ede857 100644 --- a/tokio-async-await/README.md +++ b/tokio-async-await/README.md @@ -18,7 +18,7 @@ Add this to your `Cargo.toml`: edition = "2018" # In the `[dependencies]` section -tokio = {version = "0.1.0", features = ["async-await-preview"]} +tokio = {version = "0.1.15", features = ["async-await-preview"]} ``` Then, get started. In your application, add: diff --git a/tokio-async-await/examples/src/chat.rs b/tokio-async-await/examples/src/chat.rs index 53de28b33..303895a81 100644 --- a/tokio-async-await/examples/src/chat.rs +++ b/tokio-async-await/examples/src/chat.rs @@ -61,7 +61,7 @@ async fn process(stream: TcpStream, state: Arc>) -> io::Result<()> tokio::spawn_async(async move { while let Some(line) = await!(rx.next()) { let line = line.unwrap(); - await!(lines_tx.send_async(line)); + await!(lines_tx.send_async(line)).unwrap(); } }); diff --git a/tokio-async-await/examples/src/echo_server.rs b/tokio-async-await/examples/src/echo_server.rs index 8155c9d91..4109b6c1a 100644 --- a/tokio-async-await/examples/src/echo_server.rs +++ b/tokio-async-await/examples/src/echo_server.rs @@ -1,4 +1,4 @@ -#![feature(await_macro, async_await)] +#![feature(await_macro, async_await, futures_api)] #[macro_use] extern crate tokio; diff --git a/tokio-async-await/src/lib.rs b/tokio-async-await/src/lib.rs index 388da6149..c434b1b77 100644 --- a/tokio-async-await/src/lib.rs +++ b/tokio-async-await/src/lib.rs @@ -1,6 +1,6 @@ #![cfg(feature = "async-await-preview")] #![feature(rust_2018_preview, async_await, await_macro, futures_api)] -#![doc(html_root_url = "https://docs.rs/tokio-async-await/0.1.5")] +#![doc(html_root_url = "https://docs.rs/tokio-async-await/0.1.6")] #![deny(missing_docs, missing_debug_implementations)] #![cfg_attr(test, deny(warnings))]