mirror of https://github.com/fafhrd91/actix-web
Add unpin to read_json_body
This commit is contained in:
parent
1ecfe8378f
commit
5f4828c449
|
@ -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;
|
||||||
|
|
Loading…
Reference in New Issue