From 33e77320200e4f51550477a8e751db22820de6a0 Mon Sep 17 00:00:00 2001 From: Yuki Okushi Date: Thu, 16 Jun 2022 17:10:48 +0900 Subject: [PATCH] Make it compile with rust-lang/rust#97346 Signed-off-by: Yuki Okushi --- src/route.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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())