Skip to content

Commit e9bfff8

Browse files
committed
Added ?Sized as requirement for reader parameter of poll_read_buf function
1 parent 9c337ca commit e9bfff8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tokio-util/src/util/poll_buf.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ use std::task::{Context, Poll};
4646
/// # }
4747
/// ```
4848
#[cfg_attr(not(feature = "io"), allow(unreachable_pub))]
49-
pub fn poll_read_buf<T: AsyncRead, B: BufMut>(
49+
pub fn poll_read_buf<T: AsyncRead + ?Sized, B: BufMut>(
5050
io: Pin<&mut T>,
5151
cx: &mut Context<'_>,
5252
buf: &mut B,

0 commit comments

Comments
 (0)