diff --git a/mendes/src/application.rs b/mendes/src/application.rs index 901bb71..0f2d66e 100644 --- a/mendes/src/application.rs +++ b/mendes/src/application.rs @@ -422,7 +422,7 @@ macro_rules! deserialize_body { Some("application/x-www-form-urlencoded") => { serde_urlencoded::from_bytes::(&$bytes).map_err(Error::BodyDecodeForm) } - #[cfg(feature = "serde_json")] + #[cfg(feature = "json")] Some("application/json") => { serde_json::from_slice::(&$bytes).map_err(Error::BodyDecodeJson) }