@@ -126,7 +126,7 @@ impl<Si, Item, U, Fut, F, E> With<Si, Item, U, Fut, F>
126126 ) -> Poll < Result < ( ) , E > > {
127127 let buffered = match self . as_mut ( ) . state ( ) . as_pin_mut ( ) {
128128 State :: Empty => return Poll :: Ready ( Ok ( ( ) ) ) ,
129- State :: Process ( fut) => Some ( try_ready ! ( fut. poll( cx) ) ) ,
129+ State :: Process ( fut) => Some ( ready ! ( fut. poll( cx) ) ? ) ,
130130 State :: Buffered ( _) => None ,
131131 } ;
132132 if let Some ( buffered) = buffered {
@@ -168,17 +168,17 @@ impl<Si, Item, U, Fut, F, E> Sink<U> for With<Si, Item, U, Fut, F>
168168 mut self : Pin < & mut Self > ,
169169 cx : & mut Context < ' _ > ,
170170 ) -> Poll < Result < ( ) , Self :: SinkError > > {
171- try_ready ! ( self . as_mut( ) . poll( cx) ) ;
172- try_ready ! ( self . as_mut( ) . sink( ) . poll_flush( cx) ) ;
171+ ready ! ( self . as_mut( ) . poll( cx) ) ? ;
172+ ready ! ( self . as_mut( ) . sink( ) . poll_flush( cx) ) ? ;
173173 Poll :: Ready ( Ok ( ( ) ) )
174174 }
175175
176176 fn poll_close (
177177 mut self : Pin < & mut Self > ,
178178 cx : & mut Context < ' _ > ,
179179 ) -> Poll < Result < ( ) , Self :: SinkError > > {
180- try_ready ! ( self . as_mut( ) . poll( cx) ) ;
181- try_ready ! ( self . as_mut( ) . sink( ) . poll_close( cx) ) ;
180+ ready ! ( self . as_mut( ) . poll( cx) ) ? ;
181+ ready ! ( self . as_mut( ) . sink( ) . poll_close( cx) ) ? ;
182182 Poll :: Ready ( Ok ( ( ) ) )
183183 }
184184}
0 commit comments