mirror of
https://github.com/actix/actix-web.git
synced 2024-12-21 23:56:35 +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>
|
||||
where
|
||||
T: Service,
|
||||
T::Error: Into<Err>,
|
||||
F: Fn(Req, &mut T) -> R,
|
||||
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>
|
||||
where
|
||||
T: NewService,
|
||||
T::Error: Into<Err>,
|
||||
F: Fn(Req, &mut T::Service) -> R,
|
||||
R: Future<Item = Resp, Error = Err>,
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue