Skip to content

Commit 9c47131

Browse files
committed
Make module name consistent with tower
1 parent 8c6c736 commit 9c47131

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

axum-extra/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ pub mod middleware {
5656
//! Create middleware from async functions.
5757
5858
pub use axum::middleware::{
59-
from_fn, futures::FromFnResponseFuture as ResponseFuture, FromFn as MiddlewareFn,
59+
from_fn, future::FromFnResponseFuture as ResponseFuture, FromFn as MiddlewareFn,
6060
FromFnLayer as MiddlewareFnLayer, Next,
6161
};
6262
}

axum/src/middleware/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ mod from_fn;
66

77
pub use self::from_fn::{from_fn, FromFn, FromFnLayer, Next};
88

9-
pub mod futures {
9+
pub mod future {
1010
//! Future types.
1111
1212
pub use super::from_fn::ResponseFuture as FromFnResponseFuture;

0 commit comments

Comments
 (0)