diff --git a/src/async_impl/response.rs b/src/async_impl/response.rs index 3b74a94..e3b2cec 100644 --- a/src/async_impl/response.rs +++ b/src/async_impl/response.rs @@ -127,7 +127,7 @@ impl Response { /// Try to deserialize the response body as JSON using `serde`. #[inline] - pub fn json(&mut self) -> Json { + pub fn json(&mut self) -> impl Future { let body = mem::replace(&mut self.body, Decoder::empty()); Json {