mirror of
https://github.com/tokio-rs/axum.git
synced 2026-08-23 00:00:15 +02:00
Fix
This commit is contained in:
@@ -122,7 +122,7 @@ macro_rules! impl_handler_call_with {
|
||||
Fut: Future + Send + 'static,
|
||||
Fut::Output: IntoResponse,
|
||||
{
|
||||
// this puts `futures_util` in our public API but thats fine in axum-extra
|
||||
// this puts `futures_util` in our public API but that's fine in axum-extra
|
||||
type Future = Map<Fut, fn(Fut::Output) -> Response>;
|
||||
|
||||
fn call(
|
||||
|
||||
@@ -26,7 +26,7 @@ where
|
||||
Rt: Send + 'static,
|
||||
Lt: Send + 'static,
|
||||
{
|
||||
// this puts `futures_util` in our public API but thats fine in axum-extra
|
||||
// this puts `futures_util` in our public API but that's fine in axum-extra
|
||||
type Future = EitherFuture<
|
||||
Map<L::Future, fn(<L::Future as Future>::Output) -> Response>,
|
||||
Map<R::Future, fn(<R::Future as Future>::Output) -> Response>,
|
||||
@@ -62,7 +62,7 @@ where
|
||||
Rt::Rejection: Send,
|
||||
S: Send + Sync + 'static,
|
||||
{
|
||||
// this puts `futures_util` in our public API but thats fine in axum-extra
|
||||
// this puts `futures_util` in our public API but that's fine in axum-extra
|
||||
type Future = BoxFuture<'static, Response>;
|
||||
|
||||
fn call(self, req: Request, state: S) -> Self::Future {
|
||||
|
||||
Reference in New Issue
Block a user