From c433633320f87f70da6be838616d6b67adb5eacb Mon Sep 17 00:00:00 2001 From: Taiki Endo Date: Thu, 31 Oct 2019 22:46:50 +0900 Subject: [PATCH] Rename Peekable::peek to poll_peek --- futures-util/src/stream/peek.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/futures-util/src/stream/peek.rs b/futures-util/src/stream/peek.rs index ef9a219cd0..2d0b23cdde 100644 --- a/futures-util/src/stream/peek.rs +++ b/futures-util/src/stream/peek.rs @@ -67,7 +67,7 @@ impl Peekable { /// /// This method polls the underlying stream and return either a reference /// to the next item if the stream is ready or passes through any errors. - pub fn peek( + pub fn poll_peek( mut self: Pin<&mut Self>, cx: &mut Context<'_>, ) -> Poll> {