1
0
Fork 0
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:
Nikolay Kim 2018-08-30 15:12:01 -07:00
parent eaa9d4b273
commit fbd17e43f3

View file

@ -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>,
{