Skip to content

Commit

Permalink
Make it compile with rust-lang/rust#97346
Browse files Browse the repository at this point in the history
Signed-off-by: Yuki Okushi <jtitor@2k36.org>
  • Loading branch information
JohnTitor committed Jun 16, 2022
1 parent 1f02e7d commit 33e7732
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 33e7732

Please sign in to comment.