File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -87,7 +87,7 @@ impl Client {
87
87
pin_project ! {
88
88
struct IncomingResponseFuture {
89
89
#[ pin]
90
- subscription: Option < WaitFor > ,
90
+ subscription: WaitFor ,
91
91
wasi: WasiFutureIncomingResponse ,
92
92
}
93
93
}
@@ -96,7 +96,7 @@ impl Client {
96
96
97
97
fn poll ( self : Pin < & mut Self > , cx : & mut Context < ' _ > ) -> Poll < Self :: Output > {
98
98
let this = self . project ( ) ;
99
- match this. subscription . as_pin_mut ( ) . expect ( "make it so" ) . poll ( cx) {
99
+ match this. subscription . poll ( cx) {
100
100
Poll :: Pending => Poll :: Pending ,
101
101
Poll :: Ready ( ( ) ) => Poll :: Ready (
102
102
this. wasi
@@ -112,7 +112,7 @@ impl Client {
112
112
113
113
let subscription = AsyncPollable :: new ( res. subscribe ( ) ) . wait_for ( ) ;
114
114
let future = IncomingResponseFuture {
115
- subscription : Some ( subscription ) ,
115
+ subscription,
116
116
wasi : res,
117
117
} ;
118
118
You can’t perform that action at this time.
0 commit comments