Skip to content

Commit

Permalink
minor: replace spaces with tabs
Browse files Browse the repository at this point in the history
  • Loading branch information
dmitry-markin committed Aug 28, 2023
1 parent ca546cd commit 55046c5
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions substrate/client/network/sync/src/futures_stream.rs
Original file line number Diff line number Diff line change
Expand Up @@ -58,14 +58,14 @@ impl<F: Future> Stream for FuturesStream<F> {
type Item = <F as Future>::Output;

fn poll_next(mut self: Pin<&mut Self>, cx: &mut Context<'_>) -> Poll<Option<Self::Item>> {
let Poll::Ready(Some(result)) = self.futures.poll_next_unpin(cx) else {
self.waker = Some(cx.waker().clone());
let Poll::Ready(Some(result)) = self.futures.poll_next_unpin(cx) else {
self.waker = Some(cx.waker().clone());

return Poll::Pending
};
return Poll::Pending
};

Poll::Ready(Some(result))
}
Poll::Ready(Some(result))
}
}

#[cfg(test)]
Expand Down

0 comments on commit 55046c5

Please sign in to comment.