Skip to content

Commit 33e7732

Browse files
committed
Make it compile with rust-lang/rust#97346
Signed-off-by: Yuki Okushi <[email protected]>
1 parent 1f02e7d commit 33e7732

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/route.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ impl Router {
9797
http::Request<Body>,
9898
Response = http::Response<Body>,
9999
Error = Infallible,
100-
Future = impl Send,
100+
Future = impl Future<Output = Result<http::Response<Body>, Infallible>> + Send + 'static,
101101
> + Clone {
102102
let this = Arc::new(self);
103103
service_fn(move |request: http::Request<Body>| this.clone().handle(request).never_error())

0 commit comments

Comments
 (0)