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,