mirror of
https://github.com/tokio-rs/axum.git
synced 2026-08-28 00:00:20 +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.
|
||||
|
||||
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,
|
||||
};
|
||||
}
|
||||
|
||||
@@ -6,7 +6,7 @@ mod from_fn;
|
||||
|
||||
pub use self::from_fn::{from_fn, FromFn, FromFnLayer, Next};
|
||||
|
||||
pub mod futures {
|
||||
pub mod future {
|
||||
//! Future types.
|
||||
|
||||
pub use super::from_fn::ResponseFuture as FromFnResponseFuture;
|
||||
|
||||
Reference in New Issue
Block a user