]> git.lizzy.rs Git - connect-rs.git/blobdiff - src/reader.rs
add return stmt to fix bug
[connect-rs.git] / src / reader.rs
index cfdc75404fd54962b61354a685b80b8f475d0c83..6844e393f297148f09b0e5ef0b64c577fc923826 100644 (file)
@@ -138,7 +138,7 @@ impl Stream for ConnectionReader {
                 // Close the stream
                 Poll::Ready(Err(_e)) => {
                     self.close_stream();
-                    Poll::Ready(None)
+                    return Poll::Ready(None)
                 }
             }
         }