Skip to content

Commit f231a51

Browse files
committed
Allow dynamically sized types in tokio_util::io::poll_write_buf
1 parent e9bfff8 commit f231a51

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
@@ -120,7 +120,7 @@ pub fn poll_read_buf<T: AsyncRead + ?Sized, B: BufMut>(
120120
/// [`File`]: tokio::fs::File
121121
/// [vectored writes]: tokio::io::AsyncWrite::poll_write_vectored
122122
#[cfg_attr(not(feature = "io"), allow(unreachable_pub))]
123-
pub fn poll_write_buf<T: AsyncWrite, B: Buf>(
123+
pub fn poll_write_buf<T: AsyncWrite + ?Sized, B: Buf>(
124124
io: Pin<&mut T>,
125125
cx: &mut Context<'_>,
126126
buf: &mut B,

0 commit comments

Comments
 (0)