1
0
Fork 0
mirror of https://github.com/tokio-rs/axum.git synced 2025-04-26 13:56:22 +02:00

Add missing cfg to axum_extra::extract::Form ()

This commit is contained in:
David Pedersen 2022-07-26 00:25:45 +02:00 committed by GitHub
parent 234c8ccb13
commit 10ab8c7aba
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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<T>(pub T);
impl<T> Deref for Form<T> {