@@ -65,7 +65,7 @@ pub struct Handler {
6565 queued_events : VecDeque <
6666 ConnectionHandlerEvent <
6767 <Self as ConnectionHandler >:: OutboundProtocol ,
68- < Self as ConnectionHandler > :: OutboundOpenInfo ,
68+ ( ) ,
6969 <Self as ConnectionHandler >:: ToBehaviour ,
7070 > ,
7171 > ,
@@ -98,10 +98,7 @@ impl Handler {
9898 & mut self ,
9999 FullyNegotiatedInbound {
100100 protocol : output, ..
101- } : FullyNegotiatedInbound <
102- <Self as ConnectionHandler >:: InboundProtocol ,
103- <Self as ConnectionHandler >:: InboundOpenInfo ,
104- > ,
101+ } : FullyNegotiatedInbound < <Self as ConnectionHandler >:: InboundProtocol > ,
105102 ) {
106103 match output {
107104 future:: Either :: Left ( stream) => {
@@ -130,10 +127,7 @@ impl Handler {
130127 & mut self ,
131128 FullyNegotiatedOutbound {
132129 protocol : stream, ..
133- } : FullyNegotiatedOutbound <
134- <Self as ConnectionHandler >:: OutboundProtocol ,
135- <Self as ConnectionHandler >:: OutboundOpenInfo ,
136- > ,
130+ } : FullyNegotiatedOutbound < <Self as ConnectionHandler >:: OutboundProtocol > ,
137131 ) {
138132 assert ! (
139133 self . endpoint. is_listener( ) ,
@@ -156,7 +150,7 @@ impl Handler {
156150 fn on_listen_upgrade_error (
157151 & mut self ,
158152 ListenUpgradeError { error, .. } : ListenUpgradeError <
159- < Self as ConnectionHandler > :: InboundOpenInfo ,
153+ ( ) ,
160154 <Self as ConnectionHandler >:: InboundProtocol ,
161155 > ,
162156 ) {
@@ -168,7 +162,7 @@ impl Handler {
168162 fn on_dial_upgrade_error (
169163 & mut self ,
170164 DialUpgradeError { error, .. } : DialUpgradeError <
171- < Self as ConnectionHandler > :: OutboundOpenInfo ,
165+ ( ) ,
172166 <Self as ConnectionHandler >:: OutboundProtocol ,
173167 > ,
174168 ) {
@@ -196,7 +190,7 @@ impl ConnectionHandler for Handler {
196190 type OutboundOpenInfo = ( ) ;
197191 type InboundOpenInfo = ( ) ;
198192
199- fn listen_protocol ( & self ) -> SubstreamProtocol < Self :: InboundProtocol , Self :: InboundOpenInfo > {
193+ fn listen_protocol ( & self ) -> SubstreamProtocol < Self :: InboundProtocol > {
200194 match self . endpoint {
201195 ConnectedPoint :: Dialer { .. } => {
202196 SubstreamProtocol :: new ( Either :: Left ( ReadyUpgrade :: new ( PROTOCOL_NAME ) ) , ( ) )
@@ -236,9 +230,7 @@ impl ConnectionHandler for Handler {
236230 fn poll (
237231 & mut self ,
238232 cx : & mut Context < ' _ > ,
239- ) -> Poll <
240- ConnectionHandlerEvent < Self :: OutboundProtocol , Self :: OutboundOpenInfo , Self :: ToBehaviour > ,
241- > {
233+ ) -> Poll < ConnectionHandlerEvent < Self :: OutboundProtocol , ( ) , Self :: ToBehaviour > > {
242234 // Return queued events.
243235 if let Some ( event) = self . queued_events . pop_front ( ) {
244236 return Poll :: Ready ( event) ;
@@ -295,12 +287,7 @@ impl ConnectionHandler for Handler {
295287
296288 fn on_connection_event (
297289 & mut self ,
298- event : ConnectionEvent <
299- Self :: InboundProtocol ,
300- Self :: OutboundProtocol ,
301- Self :: InboundOpenInfo ,
302- Self :: OutboundOpenInfo ,
303- > ,
290+ event : ConnectionEvent < Self :: InboundProtocol , Self :: OutboundProtocol > ,
304291 ) {
305292 match event {
306293 ConnectionEvent :: FullyNegotiatedInbound ( fully_negotiated_inbound) => {
0 commit comments