File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -87,7 +87,7 @@ impl Client {
8787 pin_project ! {
8888 struct IncomingResponseFuture {
8989 #[ pin]
90- subscription: Option < WaitFor > ,
90+ subscription: WaitFor ,
9191 wasi: WasiFutureIncomingResponse ,
9292 }
9393 }
@@ -96,7 +96,7 @@ impl Client {
9696
9797 fn poll ( self : Pin < & mut Self > , cx : & mut Context < ' _ > ) -> Poll < Self :: Output > {
9898 let this = self . project ( ) ;
99- match this. subscription . as_pin_mut ( ) . expect ( "make it so" ) . poll ( cx) {
99+ match this. subscription . poll ( cx) {
100100 Poll :: Pending => Poll :: Pending ,
101101 Poll :: Ready ( ( ) ) => Poll :: Ready (
102102 this. wasi
@@ -112,7 +112,7 @@ impl Client {
112112
113113 let subscription = AsyncPollable :: new ( res. subscribe ( ) ) . wait_for ( ) ;
114114 let future = IncomingResponseFuture {
115- subscription : Some ( subscription ) ,
115+ subscription,
116116 wasi : res,
117117 } ;
118118
You can’t perform that action at this time.
0 commit comments