Skip to content

Commit e2847e9

Browse files
Merge pull request #1 from JohnTitor/fix-for-rust-issue-97346
Make the crate compile with rust-lang/rust#97346
2 parents 1f02e7d + 33e7732 commit e2847e9

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)