mirror of
https://github.com/tokio-rs/axum.git
synced 2026-09-09 00:00:12 +02:00
Make module name consistent with tower
This commit is contained in:
@@ -56,7 +56,7 @@ pub mod middleware {
|
|||||||
//! Create middleware from async functions.
|
//! Create middleware from async functions.
|
||||||
|
|
||||||
pub use axum::middleware::{
|
pub use axum::middleware::{
|
||||||
from_fn, futures::FromFnResponseFuture as ResponseFuture, FromFn as MiddlewareFn,
|
from_fn, future::FromFnResponseFuture as ResponseFuture, FromFn as MiddlewareFn,
|
||||||
FromFnLayer as MiddlewareFnLayer, Next,
|
FromFnLayer as MiddlewareFnLayer, Next,
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -6,7 +6,7 @@ mod from_fn;
|
|||||||
|
|
||||||
pub use self::from_fn::{from_fn, FromFn, FromFnLayer, Next};
|
pub use self::from_fn::{from_fn, FromFn, FromFnLayer, Next};
|
||||||
|
|
||||||
pub mod futures {
|
pub mod future {
|
||||||
//! Future types.
|
//! Future types.
|
||||||
|
|
||||||
pub use super::from_fn::ResponseFuture as FromFnResponseFuture;
|
pub use super::from_fn::ResponseFuture as FromFnResponseFuture;
|
||||||
|
|||||||
Reference in New Issue
Block a user