client_bind: tighten match

Astro created

this branch is specific to Async::NotReady

Change summary

src/client_bind.rs | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

Detailed changes

src/client_bind.rs 🔗

@@ -112,7 +112,7 @@ impl<S: AsyncRead + AsyncWrite> Future for ClientBind<S> {
                         replace(self, ClientBind::WaitRecv(stream));
                         self.poll()
                     },
-                    Ok(_) => {
+                    Ok(Async::NotReady) => {
                         replace(self, ClientBind::WaitRecv(stream));
                         Ok(Async::NotReady)
                     },