diff --git a/.travis.yml b/.travis.yml index caf523662e..2b3ae0be39 100644 --- a/.travis.yml +++ b/.travis.yml @@ -28,10 +28,16 @@ matrix: - name: cargo test rust: nightly os: osx + before_script: + # TODO: https://github.com/rust-lang-nursery/futures-rs/pull/1685#issuecomment-506927847 + - rustup update - name: cargo test rust: nightly os: linux + before_script: + # TODO: https://github.com/rust-lang-nursery/futures-rs/pull/1685#issuecomment-506927847 + - rustup update - name: cargo build (with minimal versions) rust: nightly diff --git a/futures-util/src/stream/mod.rs b/futures-util/src/stream/mod.rs index f7ee3129bd..e8f01e7b00 100644 --- a/futures-util/src/stream/mod.rs +++ b/futures-util/src/stream/mod.rs @@ -410,8 +410,7 @@ pub trait StreamExt: Stream { /// /// # Examples /// - // TODO: https://github.com/rust-lang-nursery/futures-rs/issues/1657 - /// ```ignore + /// ``` /// #![feature(async_await)] /// # futures::executor::block_on(async { /// use futures::channel::mpsc; @@ -421,7 +420,7 @@ pub trait StreamExt: Stream { /// let (tx, rx) = mpsc::unbounded(); /// /// thread::spawn(move || { - /// for i in (1..=5) { + /// for i in 1..=5 { /// tx.unbounded_send(i).unwrap(); /// } /// }); @@ -448,8 +447,7 @@ pub trait StreamExt: Stream { /// /// # Examples /// - // TODO: https://github.com/rust-lang-nursery/futures-rs/issues/1657 - /// ```ignore + /// ``` /// #![feature(async_await)] /// # futures::executor::block_on(async { /// use futures::channel::mpsc; @@ -512,8 +510,7 @@ pub trait StreamExt: Stream { /// /// # Examples /// - // TODO: https://github.com/rust-lang-nursery/futures-rs/issues/1657 - /// ```ignore + /// ``` /// #![feature(async_await)] /// # futures::executor::block_on(async { /// use futures::channel::mpsc; diff --git a/futures-util/src/try_stream/mod.rs b/futures-util/src/try_stream/mod.rs index 1c0757bc2e..9a9f50113a 100644 --- a/futures-util/src/try_stream/mod.rs +++ b/futures-util/src/try_stream/mod.rs @@ -449,18 +449,17 @@ pub trait TryStreamExt: TryStream { /// /// # Examples /// - // TODO: https://github.com/rust-lang-nursery/futures-rs/issues/1657 - /// ```ignore + /// ``` /// #![feature(async_await)] /// # futures::executor::block_on(async { /// use futures::channel::mpsc; /// use futures::stream::TryStreamExt; /// use std::thread; /// - /// let (mut tx, rx) = mpsc::unbounded(); + /// let (tx, rx) = mpsc::unbounded(); /// /// thread::spawn(move || { - /// for i in (1..=5) { + /// for i in 1..=5 { /// tx.unbounded_send(Ok(i)).unwrap(); /// } /// tx.unbounded_send(Err(6)).unwrap(); @@ -608,15 +607,14 @@ pub trait TryStreamExt: TryStream { /// /// # Examples /// - // TODO: https://github.com/rust-lang-nursery/futures-rs/issues/1657 - /// ```ignore + /// ``` /// #![feature(async_await)] /// # futures::executor::block_on(async { /// use futures::channel::mpsc; /// use futures::stream::TryStreamExt; /// use std::thread; /// - /// let (mut tx, rx) = mpsc::unbounded::, ()>>(); + /// let (tx, rx) = mpsc::unbounded::, ()>>(); /// /// thread::spawn(move || { /// for i in (0..3).rev() {