From d3db4f42401b01c020e91da4299f0d4b74f5991a Mon Sep 17 00:00:00 2001 From: Nick Pavlov Date: Thu, 13 Jul 2023 23:05:50 +0300 Subject: [PATCH] fix compilation --- connection-pool/src/behaviour.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/connection-pool/src/behaviour.rs b/connection-pool/src/behaviour.rs index 53a4ebc161..71dc8d5ece 100644 --- a/connection-pool/src/behaviour.rs +++ b/connection-pool/src/behaviour.rs @@ -19,8 +19,8 @@ use libp2p::core::Endpoint; use libp2p::swarm::dial_opts::DialOpts; use libp2p::swarm::CloseConnection::All; use libp2p::swarm::{ - dial_opts, ConnectionDenied, ConnectionId, DialError, FromSwarm, THandler, THandlerOutEvent, - ToSwarm, + dial_opts, ConnectionDenied, ConnectionId, DialError, FromSwarm, ListenFailure, THandler, + THandlerOutEvent, ToSwarm, }; use libp2p::{ core::{ConnectedPoint, Multiaddr}, @@ -437,7 +437,7 @@ impl ConnectionPoolBehaviour { } } - fn on_listen_failure<'a>(&mut self, event: ListenFailure<'a>) { + fn on_listen_failure(&mut self, event: ListenFailure<'_>) { log::warn!( "Error accepting incoming connection from {} to our local address {}: {:?}", event.send_back_addr,