diff --git a/ngrok/src/proxy_proto.rs b/ngrok/src/proxy_proto.rs index e474546..9d23c30 100644 --- a/ngrok/src/proxy_proto.rs +++ b/ngrok/src/proxy_proto.rs @@ -173,7 +173,9 @@ impl WriteState { Poll::Pending | Poll::Ready(Err(_)) => { *self = WriteState::Writing(buf); ready!(write_res)?; - return Ok(()).into(); + unreachable!( + "ready! will return for us on either Pending or Ready(Err)" + ); } Poll::Ready(Ok(written)) => { buf.advance(written);