From 4d4395138aeae9fd202700c416ce01350b7d7142 Mon Sep 17 00:00:00 2001 From: Tomio Date: Wed, 10 Aug 2022 21:39:45 +0800 Subject: [PATCH] Only use a single `to` in `AsyncSeekExt::rewind` --- tokio/src/io/util/async_seek_ext.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tokio/src/io/util/async_seek_ext.rs b/tokio/src/io/util/async_seek_ext.rs index 46b3e6c0d39..aadf3a76a96 100644 --- a/tokio/src/io/util/async_seek_ext.rs +++ b/tokio/src/io/util/async_seek_ext.rs @@ -69,7 +69,7 @@ cfg_io_util! { /// Creates a future which will rewind to the beginning of the stream. /// - /// This is convenience method, equivalent to to `self.seek(SeekFrom::Start(0))`. + /// This is convenience method, equivalent to `self.seek(SeekFrom::Start(0))`. fn rewind(&mut self) -> Seek<'_, Self> where Self: Unpin,