remove unused State variant

This commit is contained in:
fakeshadow 2020-12-18 08:20:18 +08:00
parent a980393f2f
commit 0e2e9a365d
1 changed files with 0 additions and 5 deletions

View File

@ -127,8 +127,6 @@ where
ExpectCall(#[pin] X::Future), ExpectCall(#[pin] X::Future),
ServiceCall(#[pin] S::Future), ServiceCall(#[pin] S::Future),
SendPayload(#[pin] ResponseBody<B>), SendPayload(#[pin] ResponseBody<B>),
// A special state hinting the state should not be updated.
NoOp,
} }
impl<S, B, X> State<S, B, X> impl<S, B, X> State<S, B, X>
@ -444,9 +442,6 @@ where
} }
continue; continue;
} }
StateProj::NoOp => {
unreachable!("State::NoOp is only used in handle_request method")
}
}; };
this = self.as_mut().project(); this = self.as_mut().project();