Add unpin to read_json_body

This commit is contained in:
Tore Pettersen 2020-03-08 00:13:39 +01:00
parent 1ecfe8378f
commit 5f4828c449
1 changed files with 1 additions and 1 deletions

View File

@ -242,7 +242,7 @@ where
/// ``` /// ```
pub async fn read_body_json<T, B>(res: ServiceResponse<B>) -> T pub async fn read_body_json<T, B>(res: ServiceResponse<B>) -> T
where where
B: MessageBody, B: MessageBody + Unpin,
T: DeserializeOwned, T: DeserializeOwned,
{ {
let body = read_body(res).await; let body = read_body(res).await;