Skip to content

Commit 60ce74d

Browse files
taiki-ecramertj
authored andcommitted
Avoid "cycle detected" error
1 parent 1b9f83e commit 60ce74d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

futures-util/src/compat/compat01as03.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -354,7 +354,7 @@ mod io {
354354
///
355355
/// let input = b"Hello World!";
356356
/// let reader: impl tokio_io::AsyncRead = std::io::Cursor::new(input);
357-
/// let mut reader: impl futures::io::AsyncRead = reader.compat();
357+
/// let mut reader: impl futures::io::AsyncRead + Unpin = reader.compat();
358358
///
359359
/// let mut output = Vec::with_capacity(12);
360360
/// await!(reader.read_to_end(&mut output)).unwrap();

0 commit comments

Comments
 (0)