diff --git a/axum/CHANGELOG.md b/axum/CHANGELOG.md index 157f5eb8ec..570a2d5a5f 100644 --- a/axum/CHANGELOG.md +++ b/axum/CHANGELOG.md @@ -7,7 +7,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 # Unreleased -- None. +- **fixed:** Fix compile error when the `headers` is enabled and the `form` + feature is disabled # 0.5.8 (18. June, 2022) diff --git a/axum/src/lib.rs b/axum/src/lib.rs index 7fbf51c267..c5f1950512 100644 --- a/axum/src/lib.rs +++ b/axum/src/lib.rs @@ -437,8 +437,8 @@ pub use self::routing::Router; pub use self::typed_header::TypedHeader; #[doc(inline)] -#[cfg(feature = "headers")] -pub use form::Form; +#[cfg(feature = "form")] +pub use self::form::Form; #[doc(inline)] pub use axum_core::{BoxError, Error};