Skip to content

Commit

Permalink
Fix build with form feature without headers feature
Browse files Browse the repository at this point in the history
Fixes #1106
  • Loading branch information
davidpdrsn committed Jun 19, 2022
1 parent 5ac0b2b commit 36bbc2c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
3 changes: 2 additions & 1 deletion axum/CHANGELOG.md
Expand Up @@ -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)

Expand Down
4 changes: 2 additions & 2 deletions axum/src/lib.rs
Expand Up @@ -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};

0 comments on commit 36bbc2c

Please sign in to comment.