Skip to content

Commit 6adcfee

Browse files
committed
Removed unused function + fix
1 parent 42a8152 commit 6adcfee

File tree

2 files changed

+1
-4
lines changed

2 files changed

+1
-4
lines changed

futures-util/src/compat/compat01as03.rs

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -383,10 +383,6 @@ mod io {
383383
/// # futures::executor::block_on(async {
384384
/// use futures::io::AsyncReadExt;
385385
/// use futures_util::compat::AsyncRead01CompatExt;
386-
///
387-
/// fn create_async_read_cursor<'a>(input: &'a [u8]) -> impl futures::io::AsyncRead + Unpin + 'a {
388-
/// std::io::Cursor::new(input).compat()
389-
/// }
390386
///
391387
/// let input = b"Hello World!";
392388
/// let reader /* : impl tokio_io::AsyncRead */ = std::io::Cursor::new(input);

futures/tests/stream.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -311,6 +311,7 @@ fn take_until() {
311311
}
312312

313313
#[cfg(feature = "executor")] // executor::
314+
#[test]
314315
#[should_panic]
315316
fn ready_chunks_panic_on_cap_zero() {
316317
use futures::channel::mpsc;

0 commit comments

Comments
 (0)