mirror of
https://github.com/tokio-rs/axum.git
synced 2026-08-26 00:00:23 +02:00
Reduce dependency on futures-util (#3358)
This commit is contained in:
@@ -7,7 +7,8 @@ use axum::{
|
||||
handler::Handler,
|
||||
response::{IntoResponse, Response},
|
||||
};
|
||||
use futures_util::future::{BoxFuture, FutureExt, Map};
|
||||
use futures_core::future::BoxFuture;
|
||||
use futures_util::future::{FutureExt, Map};
|
||||
use std::{future::Future, marker::PhantomData};
|
||||
|
||||
mod or;
|
||||
|
||||
@@ -5,7 +5,8 @@ use axum::{
|
||||
handler::Handler,
|
||||
response::{IntoResponse, Response},
|
||||
};
|
||||
use futures_util::future::{BoxFuture, Either as EitherFuture, FutureExt, Map};
|
||||
use futures_core::future::BoxFuture;
|
||||
use futures_util::future::{Either as EitherFuture, FutureExt, Map};
|
||||
use std::{future::Future, marker::PhantomData};
|
||||
|
||||
/// [`Handler`] that runs one [`Handler`] and if that rejects it'll fallback to another
|
||||
|
||||
Reference in New Issue
Block a user