File tree 1 file changed +4
-4
lines changed
1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -125,16 +125,16 @@ impl AsyncWrite for TlsStream {
125
125
}
126
126
127
127
fn poll_flush ( mut self : Pin < & mut Self > , cx : & mut Context < ' _ > ) -> Poll < io:: Result < ( ) > > {
128
- match self . state {
128
+ match & mut self . state {
129
129
State :: Handshaking ( _) => Poll :: Ready ( Ok ( ( ) ) ) ,
130
- State :: Streaming ( ref mut stream) => Pin :: new ( stream) . poll_flush ( cx) ,
130
+ State :: Streaming ( stream) => Pin :: new ( stream) . poll_flush ( cx) ,
131
131
}
132
132
}
133
133
134
134
fn poll_shutdown ( mut self : Pin < & mut Self > , cx : & mut Context < ' _ > ) -> Poll < io:: Result < ( ) > > {
135
- match self . state {
135
+ match & mut self . state {
136
136
State :: Handshaking ( _) => Poll :: Ready ( Ok ( ( ) ) ) ,
137
- State :: Streaming ( ref mut stream) => Pin :: new ( stream) . poll_shutdown ( cx) ,
137
+ State :: Streaming ( stream) => Pin :: new ( stream) . poll_shutdown ( cx) ,
138
138
}
139
139
}
140
140
}
You can’t perform that action at this time.
0 commit comments