From 1fcb77db34e2534267f5dadeba2af12ebf6f2de8 Mon Sep 17 00:00:00 2001 From: Timo <39920115+tglane@users.noreply.github.com> Date: Sat, 30 Mar 2024 13:13:06 +0100 Subject: [PATCH] io: add `T: ?Sized` to `tokio_util::io::poll_read_buf` (#6441) --- tokio-util/src/util/poll_buf.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tokio-util/src/util/poll_buf.rs b/tokio-util/src/util/poll_buf.rs index 82af1bbfc..5a72bc4c8 100644 --- a/tokio-util/src/util/poll_buf.rs +++ b/tokio-util/src/util/poll_buf.rs @@ -46,7 +46,7 @@ use std::task::{Context, Poll}; /// # } /// ``` #[cfg_attr(not(feature = "io"), allow(unreachable_pub))] -pub fn poll_read_buf( +pub fn poll_read_buf( io: Pin<&mut T>, cx: &mut Context<'_>, buf: &mut B, @@ -120,7 +120,7 @@ pub fn poll_read_buf( /// [`File`]: tokio::fs::File /// [vectored writes]: tokio::io::AsyncWrite::poll_write_vectored #[cfg_attr(not(feature = "io"), allow(unreachable_pub))] -pub fn poll_write_buf( +pub fn poll_write_buf( io: Pin<&mut T>, cx: &mut Context<'_>, buf: &mut B,