diff --git a/src/route.rs b/src/route.rs index 93e363b..2ddfd2e 100644 --- a/src/route.rs +++ b/src/route.rs @@ -97,7 +97,7 @@ impl Router { http::Request, Response = http::Response, Error = Infallible, - Future = impl Send, + Future = impl Future, Infallible>> + Send + 'static, > + Clone { let this = Arc::new(self); service_fn(move |request: http::Request| this.clone().handle(request).never_error())