mirror of
https://github.com/fafhrd91/actix-net
synced 2024-11-23 22:51:07 +01:00
fix ApplyService constraint
This commit is contained in:
parent
eaa9d4b273
commit
fbd17e43f3
@ -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 New Issue
Block a user