From 49d8fc509392e01e9b9db06aa1bd357feeb3c04c Mon Sep 17 00:00:00 2001 From: David Pedersen Date: Tue, 22 Feb 2022 13:30:47 +0100 Subject: [PATCH] Make `middleware::from_fn` response future public (#778) * Make `middleware::from_fn` response future public * Make module name consistent with tower --- axum/src/middleware/mod.rs | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/axum/src/middleware/mod.rs b/axum/src/middleware/mod.rs index 2a31a48b..6e3905d9 100644 --- a/axum/src/middleware/mod.rs +++ b/axum/src/middleware/mod.rs @@ -5,3 +5,9 @@ mod from_fn; pub use self::from_fn::{from_fn, FromFn, FromFnLayer, Next}; + +pub mod future { + //! Future types. + + pub use super::from_fn::ResponseFuture as FromFnResponseFuture; +}