mirror of
https://github.com/tokio-rs/axum.git
synced 2026-08-30 00:00:32 +02:00
Clean up constructors for future newtypes (#415)
This commit is contained in:
@@ -75,6 +75,6 @@ where
|
||||
let handler = self.handler.clone();
|
||||
let future = Handler::call(handler, req).map(Ok::<_, Infallible> as _);
|
||||
|
||||
super::future::IntoServiceFuture { future }
|
||||
super::future::IntoServiceFuture::new(future)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user