Skip to content

Commit

Permalink
style: clean imports
Browse files Browse the repository at this point in the history
  • Loading branch information
lean-apple committed Dec 4, 2024
1 parent 40695c1 commit 855fa72
Showing 1 changed file with 8 additions and 5 deletions.
13 changes: 8 additions & 5 deletions crates/net/network-api/src/events.rs
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,13 @@ use reth_network_p2p::error::{RequestError, RequestResult};
use reth_network_peers::PeerId;
use reth_network_types::PeerAddr;
use reth_tokio_util::EventStream;
use std::{fmt, net::SocketAddr, pin::Pin, sync::Arc};
use std::{
fmt,
net::SocketAddr,
pin::Pin,
sync::Arc,
task::{Context, Poll},
};
use tokio::sync::{mpsc, oneshot};
use tokio_stream::{wrappers::UnboundedReceiverStream, Stream, StreamExt};

Expand Down Expand Up @@ -40,10 +46,7 @@ impl PeerEventStream {
impl Stream for PeerEventStream {
type Item = PeerEvent;

fn poll_next(
mut self: Pin<&mut Self>,
cx: &mut std::task::Context<'_>,
) -> std::task::Poll<Option<Self::Item>> {
fn poll_next(mut self: Pin<&mut Self>, cx: &mut Context<'_>) -> Poll<Option<Self::Item>> {
self.0.as_mut().poll_next(cx)
}
}
Expand Down

0 comments on commit 855fa72

Please sign in to comment.