We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9c337ca commit e9bfff8Copy full SHA for e9bfff8
tokio-util/src/util/poll_buf.rs
@@ -46,7 +46,7 @@ use std::task::{Context, Poll};
46
/// # }
47
/// ```
48
#[cfg_attr(not(feature = "io"), allow(unreachable_pub))]
49
-pub fn poll_read_buf<T: AsyncRead, B: BufMut>(
+pub fn poll_read_buf<T: AsyncRead + ?Sized, B: BufMut>(
50
io: Pin<&mut T>,
51
cx: &mut Context<'_>,
52
buf: &mut B,
0 commit comments