From f7b22219218b0d871d4d33f0629287e76d3b05b1 Mon Sep 17 00:00:00 2001 From: Thomas Eizinger Date: Fri, 7 Oct 2022 10:50:06 +1100 Subject: [PATCH] Format code --- protocols/ping/src/handler.rs | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/protocols/ping/src/handler.rs b/protocols/ping/src/handler.rs index 2c297981d2aa..f8260bdc8cfe 100644 --- a/protocols/ping/src/handler.rs +++ b/protocols/ping/src/handler.rs @@ -23,8 +23,12 @@ use futures::future::BoxFuture; use futures::prelude::*; use futures_timer::Delay; use libp2p_core::upgrade::ReadyUpgrade; -use libp2p_core::{Multiaddr, upgrade::NegotiationError, UpgradeError}; -use libp2p_swarm::{ConnectionHandler, ConnectionHandlerEvent, ConnectionHandlerSelect, ConnectionHandlerUpgrErr, KeepAlive, NegotiatedSubstream, SubstreamProtocol}; +use libp2p_core::{upgrade::NegotiationError, Multiaddr, UpgradeError}; +use libp2p_swarm::handler::{InboundUpgradeSend, MapInEvent, MapOutEvent}; +use libp2p_swarm::{ + ConnectionHandler, ConnectionHandlerEvent, ConnectionHandlerSelect, ConnectionHandlerUpgrErr, + KeepAlive, NegotiatedSubstream, SubstreamProtocol, +}; use std::collections::VecDeque; use std::{ error::Error, @@ -34,7 +38,6 @@ use std::{ time::Duration, }; use void::Void; -use libp2p_swarm::handler::{InboundUpgradeSend, MapInEvent, MapOutEvent}; /// The configuration for outbound pings. #[derive(Debug, Clone)]