From 10ab8c7abad4d8055901f2a148c3253cacb94055 Mon Sep 17 00:00:00 2001 From: David Pedersen Date: Tue, 26 Jul 2022 00:25:45 +0200 Subject: [PATCH] Add missing `cfg` to `axum_extra::extract::Form` (#1194) --- axum-extra/src/extract/form.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/axum-extra/src/extract/form.rs b/axum-extra/src/extract/form.rs index ada65191..3a20aeb1 100644 --- a/axum-extra/src/extract/form.rs +++ b/axum-extra/src/extract/form.rs @@ -43,6 +43,7 @@ use std::ops::Deref; /// /// [`serde_html_form`]: https://crates.io/crates/serde_html_form #[derive(Debug, Clone, Copy, Default)] +#[cfg(feature = "form")] pub struct Form(pub T); impl Deref for Form {