Skip to content

Commit

Permalink
fix linting
Browse files Browse the repository at this point in the history
  • Loading branch information
glendc committed May 10, 2024
1 parent e33ebe5 commit 5ab413b
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions src/future.rs
Original file line number Diff line number Diff line change
Expand Up @@ -496,13 +496,19 @@ impl<Fut: Future> Future for Fuse<Fut> {
type Output = Fut::Output;

fn poll(mut self: Pin<&mut Self>, cx: &mut Context<'_>) -> Poll<Fut::Output> {
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,
}
}
}
Expand Down

0 comments on commit 5ab413b

Please sign in to comment.