Skip to content

Commit

Permalink
Merge pull request #1 from JohnTitor/fix-for-rust-issue-97346
Browse files Browse the repository at this point in the history
Make the crate compile with rust-lang/rust#97346
  • Loading branch information
andrewhickman committed Jun 16, 2022
2 parents 1f02e7d + 33e7732 commit e2847e9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/route.rs
Expand Up @@ -97,7 +97,7 @@ impl Router {
http::Request<Body>,
Response = http::Response<Body>,
Error = Infallible,
Future = impl Send,
Future = impl Future<Output = Result<http::Response<Body>, Infallible>> + Send + 'static,
> + Clone {
let this = Arc::new(self);
service_fn(move |request: http::Request<Body>| this.clone().handle(request).never_error())
Expand Down

0 comments on commit e2847e9

Please sign in to comment.