From 6adcfeed55a5d6127082ab4d8b9c0e60cd6ec038 Mon Sep 17 00:00:00 2001 From: olegnn Date: Sun, 17 May 2020 15:52:21 +0300 Subject: [PATCH] Removed unused function + fix --- futures-util/src/compat/compat01as03.rs | 4 ---- futures/tests/stream.rs | 1 + 2 files changed, 1 insertion(+), 4 deletions(-) diff --git a/futures-util/src/compat/compat01as03.rs b/futures-util/src/compat/compat01as03.rs index 5116d03d0a..562a7ad170 100644 --- a/futures-util/src/compat/compat01as03.rs +++ b/futures-util/src/compat/compat01as03.rs @@ -383,10 +383,6 @@ mod io { /// # futures::executor::block_on(async { /// use futures::io::AsyncReadExt; /// use futures_util::compat::AsyncRead01CompatExt; - /// - /// fn create_async_read_cursor<'a>(input: &'a [u8]) -> impl futures::io::AsyncRead + Unpin + 'a { - /// std::io::Cursor::new(input).compat() - /// } /// /// let input = b"Hello World!"; /// let reader /* : impl tokio_io::AsyncRead */ = std::io::Cursor::new(input); diff --git a/futures/tests/stream.rs b/futures/tests/stream.rs index 82f5671746..1e04450008 100644 --- a/futures/tests/stream.rs +++ b/futures/tests/stream.rs @@ -311,6 +311,7 @@ fn take_until() { } #[cfg(feature = "executor")] // executor:: +#[test] #[should_panic] fn ready_chunks_panic_on_cap_zero() { use futures::channel::mpsc;