Skip to content

Commit

Permalink
application: fix json cfg guard
Browse files Browse the repository at this point in the history
  • Loading branch information
djc committed Jul 19, 2024
1 parent cd773da commit 5a6fccf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mendes/src/application.rs
Original file line number Diff line number Diff line change
Expand Up @@ -422,7 +422,7 @@ macro_rules! deserialize_body {
Some("application/x-www-form-urlencoded") => {
serde_urlencoded::from_bytes::<T>(&$bytes).map_err(Error::BodyDecodeForm)
}
#[cfg(feature = "serde_json")]
#[cfg(feature = "json")]
Some("application/json") => {
serde_json::from_slice::<T>(&$bytes).map_err(Error::BodyDecodeJson)
}
Expand Down

0 comments on commit 5a6fccf

Please sign in to comment.