diff --git a/hyper/src/server/server.rs b/hyper/src/server/server.rs index 4739f33..108cc07 100644 --- a/hyper/src/server/server.rs +++ b/hyper/src/server/server.rs @@ -106,10 +106,9 @@ pub(crate) mod new_svc { state: State, } - pub(super) enum State> { - Connecting { a: (I, S, W, E) }, - - Connected { future: W::Future }, + pub(super)struct State> { + a: (I, S, E), + future: W::Future, } impl, E, W: Watcher> NewSvcTask {