mirror of
https://github.com/actix/actix-web.git
synced 2024-12-22 16:16:40 +00:00
fix ApplyService constraint
This commit is contained in:
parent
eaa9d4b273
commit
fbd17e43f3
1 changed files with 2 additions and 0 deletions
|
@ -16,6 +16,7 @@ pub struct ApplyService<T, F, R, Req, Resp, Err> {
|
||||||
impl<T, F, R, Req, Resp, Err> ApplyService<T, F, R, Req, Resp, Err>
|
impl<T, F, R, Req, Resp, Err> ApplyService<T, F, R, Req, Resp, Err>
|
||||||
where
|
where
|
||||||
T: Service,
|
T: Service,
|
||||||
|
T::Error: Into<Err>,
|
||||||
F: Fn(Req, &mut T) -> R,
|
F: Fn(Req, &mut T) -> R,
|
||||||
R: Future<Item = Resp, Error = Err>,
|
R: Future<Item = Resp, Error = Err>,
|
||||||
{
|
{
|
||||||
|
@ -155,6 +156,7 @@ where
|
||||||
impl<T, F, R, Req, Resp, Err> Future for ApplyFuture<T, F, R, Req, Resp, Err>
|
impl<T, F, R, Req, Resp, Err> Future for ApplyFuture<T, F, R, Req, Resp, Err>
|
||||||
where
|
where
|
||||||
T: NewService,
|
T: NewService,
|
||||||
|
T::Error: Into<Err>,
|
||||||
F: Fn(Req, &mut T::Service) -> R,
|
F: Fn(Req, &mut T::Service) -> R,
|
||||||
R: Future<Item = Resp, Error = Err>,
|
R: Future<Item = Resp, Error = Err>,
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue