diff --git a/futures-util/src/compat/compat01as03.rs b/futures-util/src/compat/compat01as03.rs index 24837ba6e6..9790ef5827 100644 --- a/futures-util/src/compat/compat01as03.rs +++ b/futures-util/src/compat/compat01as03.rs @@ -384,6 +384,7 @@ mod io { /// /// ``` /// #![feature(async_await, impl_trait_in_bindings)] + /// # #![allow(incomplete_features)] /// # futures::executor::block_on(async { /// use futures::io::AsyncReadExt; /// use futures_util::compat::AsyncRead01CompatExt; @@ -412,7 +413,7 @@ mod io { /// [`AsyncWrite`](futures_io::AsyncWrite). /// /// ``` - /// #![feature(async_await, impl_trait_in_bindings)] + /// #![feature(async_await)] /// # futures::executor::block_on(async { /// use futures::io::AsyncWriteExt; /// use futures_util::compat::AsyncWrite01CompatExt; diff --git a/futures-util/src/compat/executor.rs b/futures-util/src/compat/executor.rs index f1ac18ae63..6a0fa8e197 100644 --- a/futures-util/src/compat/executor.rs +++ b/futures-util/src/compat/executor.rs @@ -66,8 +66,8 @@ pub struct Executor01As03 { } impl Spawn03 for Executor01As03 -where Ex: Executor01, - Ex: Clone + Send + 'static, +where + Ex: Executor01 + Clone + Send + 'static, { fn spawn_obj( &mut self, diff --git a/futures-util/src/stream/zip.rs b/futures-util/src/stream/zip.rs index e72fec00ce..d14d394ba9 100644 --- a/futures-util/src/stream/zip.rs +++ b/futures-util/src/stream/zip.rs @@ -14,6 +14,7 @@ pub struct Zip { queued2: Option, } +#[allow(clippy::type_repetition_in_bounds)] // https://github.com/rust-lang/rust-clippy/issues/4323 impl Unpin for Zip where St1: Stream,