@@ -194,7 +194,6 @@ impl EnabledHandler {
194194 & mut self ,
195195 FullyNegotiatedOutbound { protocol, .. } : FullyNegotiatedOutbound <
196196 <Handler as ConnectionHandler >:: OutboundProtocol ,
197- <Handler as ConnectionHandler >:: OutboundOpenInfo ,
198197 > ,
199198 ) {
200199 let ( substream, peer_kind) = protocol;
@@ -217,7 +216,7 @@ impl EnabledHandler {
217216 ) -> Poll <
218217 ConnectionHandlerEvent <
219218 <Handler as ConnectionHandler >:: OutboundProtocol ,
220- < Handler as ConnectionHandler > :: OutboundOpenInfo ,
219+ ( ) ,
221220 <Handler as ConnectionHandler >:: ToBehaviour ,
222221 > ,
223222 > {
@@ -423,7 +422,7 @@ impl ConnectionHandler for Handler {
423422 type OutboundOpenInfo = ( ) ;
424423 type OutboundProtocol = ProtocolConfig ;
425424
426- fn listen_protocol ( & self ) -> SubstreamProtocol < Self :: InboundProtocol , Self :: InboundOpenInfo > {
425+ fn listen_protocol ( & self ) -> SubstreamProtocol < Self :: InboundProtocol , ( ) > {
427426 match self {
428427 Handler :: Enabled ( handler) => {
429428 SubstreamProtocol :: new ( either:: Either :: Left ( handler. listen_protocol . clone ( ) ) , ( ) )
@@ -458,9 +457,7 @@ impl ConnectionHandler for Handler {
458457 fn poll (
459458 & mut self ,
460459 cx : & mut Context < ' _ > ,
461- ) -> Poll <
462- ConnectionHandlerEvent < Self :: OutboundProtocol , Self :: OutboundOpenInfo , Self :: ToBehaviour > ,
463- > {
460+ ) -> Poll < ConnectionHandlerEvent < Self :: OutboundProtocol , ( ) , Self :: ToBehaviour > > {
464461 match self {
465462 Handler :: Enabled ( handler) => handler. poll ( cx) ,
466463 Handler :: Disabled ( DisabledHandler :: ProtocolUnsupported { peer_kind_sent } ) => {
@@ -479,12 +476,7 @@ impl ConnectionHandler for Handler {
479476
480477 fn on_connection_event (
481478 & mut self ,
482- event : ConnectionEvent <
483- Self :: InboundProtocol ,
484- Self :: OutboundProtocol ,
485- Self :: InboundOpenInfo ,
486- Self :: OutboundOpenInfo ,
487- > ,
479+ event : ConnectionEvent < Self :: InboundProtocol , Self :: OutboundProtocol > ,
488480 ) {
489481 match self {
490482 Handler :: Enabled ( handler) => {
@@ -521,7 +513,7 @@ impl ConnectionHandler for Handler {
521513 } ) => match protocol {
522514 Either :: Left ( protocol) => handler. on_fully_negotiated_inbound ( protocol) ,
523515 #[ allow( unreachable_patterns) ]
524- Either :: Right ( v) => void :: unreachable ( v) ,
516+ Either :: Right ( v) => libp2p :: core :: util :: unreachable ( v) ,
525517 } ,
526518 ConnectionEvent :: FullyNegotiatedOutbound ( fully_negotiated_outbound) => {
527519 handler. on_fully_negotiated_outbound ( fully_negotiated_outbound)
0 commit comments