From 36bd933b006725887e24d78da46ea4b47acbe139 Mon Sep 17 00:00:00 2001 From: James Wilson Date: Wed, 17 Jan 2024 17:30:59 +0000 Subject: [PATCH] clippy --- subxt/src/backend/unstable/follow_stream_driver.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/subxt/src/backend/unstable/follow_stream_driver.rs b/subxt/src/backend/unstable/follow_stream_driver.rs index ec3e5c49f7..4a38c32e7a 100644 --- a/subxt/src/backend/unstable/follow_stream_driver.rs +++ b/subxt/src/backend/unstable/follow_stream_driver.rs @@ -46,13 +46,13 @@ impl Stream for FollowStreamDriver { fn poll_next(mut self: Pin<&mut Self>, cx: &mut Context<'_>) -> Poll> { match self.inner.poll_next_unpin(cx) { - Poll::Pending => return Poll::Pending, + Poll::Pending => Poll::Pending, Poll::Ready(None) => { // Mark ourselves as done so that everything can end. self.shared.done(); - return Poll::Ready(None); + Poll::Ready(None) } - Poll::Ready(Some(Err(e))) => return Poll::Ready(Some(Err(e))), + Poll::Ready(Some(Err(e))) => Poll::Ready(Some(Err(e))), Poll::Ready(Some(Ok(item))) => { // Push item to any subscribers. self.shared.push_item(item);