@@ -126,7 +126,7 @@ impl<Si, Item, U, Fut, F, E> With<Si, Item, U, Fut, F>
126
126
) -> Poll < Result < ( ) , E > > {
127
127
let buffered = match self . as_mut ( ) . state ( ) . as_pin_mut ( ) {
128
128
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) ) ? ) ,
130
130
State :: Buffered ( _) => None ,
131
131
} ;
132
132
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>
168
168
mut self : Pin < & mut Self > ,
169
169
cx : & mut Context < ' _ > ,
170
170
) -> 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) ) ? ;
173
173
Poll :: Ready ( Ok ( ( ) ) )
174
174
}
175
175
176
176
fn poll_close (
177
177
mut self : Pin < & mut Self > ,
178
178
cx : & mut Context < ' _ > ,
179
179
) -> 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) ) ? ;
182
182
Poll :: Ready ( Ok ( ( ) ) )
183
183
}
184
184
}
0 commit comments