From d1dd8c6df40cad8445bc0b8f8fb5744e9e48e313 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> {