mirror of
https://github.com/fafhrd91/actix-net
synced 2024-11-27 22:32:57 +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>
|
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 New Issue
Block a user