diff --git a/src/types/json.rs b/src/types/json.rs index a1a9859c9..4e827942f 100644 --- a/src/types/json.rs +++ b/src/types/json.rs @@ -168,9 +168,9 @@ impl FromRequest for Json where T: DeserializeOwned + 'static, { - type Config = JsonConfig; type Error = Error; type Future = Box>; + type Config = JsonConfig; #[inline] fn from_request(req: &HttpRequest, payload: &mut Payload) -> Self::Future {