From 5ab413bd1de8e189394d138d8146ffeae0d24742 Mon Sep 17 00:00:00 2001 From: glendc Date: Fri, 10 May 2024 20:42:58 +0200 Subject: [PATCH] fix linting --- src/future.rs | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/src/future.rs b/src/future.rs index f88fde7..5bb96e3 100644 --- a/src/future.rs +++ b/src/future.rs @@ -496,13 +496,19 @@ impl Future for Fuse { type Output = Fut::Output; fn poll(mut self: Pin<&mut Self>, cx: &mut Context<'_>) -> Poll { - match self.as_mut().project().inner.as_pin_mut().map(|f| f.poll(cx)) { + match self + .as_mut() + .project() + .inner + .as_pin_mut() + .map(|f| f.poll(cx)) + { Some(Poll::Ready(output)) => { self.project().inner.set(None); Poll::Ready(output) } - - Some(Poll::Pending) | None => Poll::Pending + + Some(Poll::Pending) | None => Poll::Pending, } } }