@@ -143,7 +143,7 @@ where
143143 }
144144
145145 /// Flushes the underlying I/O stream.
146- pub ( crate ) fn poll_flush ( & mut self , cx : & mut Context < ' _ > ) -> Poll < io:: Result < ( ) > > {
146+ pub ( crate ) fn poll_flush ( & mut self , cx : & Context < ' _ > ) -> Poll < io:: Result < ( ) > > {
147147 match & self . status {
148148 Status :: Closed => return Poll :: Ready ( Ok ( ( ) ) ) ,
149149 Status :: Err ( e) => return Poll :: Ready ( Err ( io:: Error :: new ( e. kind ( ) , e. to_string ( ) ) ) ) ,
@@ -169,7 +169,7 @@ where
169169 /// > **Note**: No `Close` or `Reset` frames are sent on open substreams
170170 /// > before closing the underlying connection. However, the connection
171171 /// > close implies a flush of any frames already sent.
172- pub ( crate ) fn poll_close ( & mut self , cx : & mut Context < ' _ > ) -> Poll < io:: Result < ( ) > > {
172+ pub ( crate ) fn poll_close ( & mut self , cx : & Context < ' _ > ) -> Poll < io:: Result < ( ) > > {
173173 match & self . status {
174174 Status :: Closed => return Poll :: Ready ( Ok ( ( ) ) ) ,
175175 Status :: Err ( e) => return Poll :: Ready ( Err ( io:: Error :: new ( e. kind ( ) , e. to_string ( ) ) ) ) ,
@@ -208,10 +208,7 @@ where
208208 /// [`MaxBufferBehaviour::Block`] is used, this method is blocked
209209 /// (i.e. `Pending`) on some task reading from the substream whose
210210 /// buffer is full.
211- pub ( crate ) fn poll_next_stream (
212- & mut self ,
213- cx : & mut Context < ' _ > ,
214- ) -> Poll < io:: Result < LocalStreamId > > {
211+ pub ( crate ) fn poll_next_stream ( & mut self , cx : & Context < ' _ > ) -> Poll < io:: Result < LocalStreamId > > {
215212 self . guard_open ( ) ?;
216213
217214 // Try to read from the buffer first.
@@ -252,10 +249,7 @@ where
252249 }
253250
254251 /// Creates a new (outbound) substream, returning the allocated stream ID.
255- pub ( crate ) fn poll_open_stream (
256- & mut self ,
257- cx : & mut Context < ' _ > ,
258- ) -> Poll < io:: Result < LocalStreamId > > {
252+ pub ( crate ) fn poll_open_stream ( & mut self , cx : & Context < ' _ > ) -> Poll < io:: Result < LocalStreamId > > {
259253 self . guard_open ( ) ?;
260254
261255 // Check the stream limits.
@@ -374,7 +368,7 @@ where
374368 /// Writes data to a substream.
375369 pub ( crate ) fn poll_write_stream (
376370 & mut self ,
377- cx : & mut Context < ' _ > ,
371+ cx : & Context < ' _ > ,
378372 id : LocalStreamId ,
379373 buf : & [ u8 ] ,
380374 ) -> Poll < io:: Result < usize > > {
@@ -424,7 +418,7 @@ where
424418 /// Inbound substreams received in excess of that limit are immediately reset.
425419 pub ( crate ) fn poll_read_stream (
426420 & mut self ,
427- cx : & mut Context < ' _ > ,
421+ cx : & Context < ' _ > ,
428422 id : LocalStreamId ,
429423 ) -> Poll < io:: Result < Option < Bytes > > > {
430424 self . guard_open ( ) ?;
@@ -516,7 +510,7 @@ where
516510 /// > the underlying I/O stream is already closed.
517511 pub ( crate ) fn poll_flush_stream (
518512 & mut self ,
519- cx : & mut Context < ' _ > ,
513+ cx : & Context < ' _ > ,
520514 id : LocalStreamId ,
521515 ) -> Poll < io:: Result < ( ) > > {
522516 self . guard_open ( ) ?;
@@ -532,7 +526,7 @@ where
532526 /// > **Note**: As opposed to `poll_close()`, a flush it not implied.
533527 pub ( crate ) fn poll_close_stream (
534528 & mut self ,
535- cx : & mut Context < ' _ > ,
529+ cx : & Context < ' _ > ,
536530 id : LocalStreamId ,
537531 ) -> Poll < io:: Result < ( ) > > {
538532 self . guard_open ( ) ?;
@@ -587,7 +581,7 @@ where
587581 ///
588582 /// The frame is only constructed if the underlying sink is ready to
589583 /// send another frame.
590- fn poll_send_frame < F > ( & mut self , cx : & mut Context < ' _ > , frame : F ) -> Poll < io:: Result < ( ) > >
584+ fn poll_send_frame < F > ( & mut self , cx : & Context < ' _ > , frame : F ) -> Poll < io:: Result < ( ) > >
591585 where
592586 F : FnOnce ( ) -> Frame < LocalStreamId > ,
593587 {
@@ -613,7 +607,7 @@ where
613607 /// frames for any substream.
614608 fn poll_read_frame (
615609 & mut self ,
616- cx : & mut Context < ' _ > ,
610+ cx : & Context < ' _ > ,
617611 stream_id : Option < LocalStreamId > ,
618612 ) -> Poll < io:: Result < Frame < RemoteStreamId > > > {
619613 // Try to send pending frames, if there are any, without blocking,
@@ -822,7 +816,7 @@ where
822816 }
823817
824818 /// Sends pending frames, without flushing.
825- fn send_pending_frames ( & mut self , cx : & mut Context < ' _ > ) -> Poll < io:: Result < ( ) > > {
819+ fn send_pending_frames ( & mut self , cx : & Context < ' _ > ) -> Poll < io:: Result < ( ) > > {
826820 while let Some ( frame) = self . pending_frames . pop_back ( ) {
827821 if self . poll_send_frame ( cx, || frame. clone ( ) ) ?. is_pending ( ) {
828822 self . pending_frames . push_back ( frame) ;
0 commit comments