Skip to content

Commit

Permalink
refactor(gateway): replace StreamExt::next with Stream::poll_next (
Browse files Browse the repository at this point in the history
  • Loading branch information
vilgotf authored Jul 19, 2023
1 parent 87aeb9c commit 0e07420
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions twilight-gateway/src/shard.rs
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ use crate::{
session::Session,
Config, Message, ShardId,
};
use futures_util::{SinkExt, StreamExt};
use futures_util::{stream::Stream, SinkExt};
use serde::{de::DeserializeOwned, Deserialize};
#[cfg(any(
feature = "native",
Expand Down Expand Up @@ -672,7 +672,7 @@ impl Shard {
}

if let Poll::Ready(message) =
Pin::new(&mut self.connection.as_mut().expect("connected").next()).poll(cx)
Pin::new(self.connection.as_mut().expect("connected")).poll_next(cx)
{
return Poll::Ready(Action::Message(message));
}
Expand Down

0 comments on commit 0e07420

Please sign in to comment.