mirror of https://github.com/fafhrd91/actix-web
remove unused State variant
This commit is contained in:
parent
a980393f2f
commit
0e2e9a365d
|
@ -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();
|
||||||
|
|
Loading…
Reference in New Issue