diff --git a/src/service/apply.rs b/src/service/apply.rs index c6b15a41..508efb17 100644 --- a/src/service/apply.rs +++ b/src/service/apply.rs @@ -16,6 +16,7 @@ pub struct ApplyService { impl ApplyService where T: Service, + T::Error: Into, F: Fn(Req, &mut T) -> R, R: Future, { @@ -155,6 +156,7 @@ where impl Future for ApplyFuture where T: NewService, + T::Error: Into, F: Fn(Req, &mut T::Service) -> R, R: Future, {