From fbd17e43f314a5b757886212bdc8ef2fcaa7e833 Mon Sep 17 00:00:00 2001 From: Nikolay Kim Date: Thu, 30 Aug 2018 15:12:01 -0700 Subject: [PATCH] fix ApplyService constraint --- src/service/apply.rs | 2 ++ 1 file changed, 2 insertions(+) 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, {