clippy lint
This commit is contained in:
parent
3764af0ed5
commit
ec9473fa78
1 changed files with 3 additions and 3 deletions
|
@ -119,9 +119,9 @@ pub async fn default(state: Data<RwLockServerState>, req: HttpRequest) -> impl R
|
||||||
}
|
}
|
||||||
// push_headers(&mut resp_builder);
|
// push_headers(&mut resp_builder);
|
||||||
|
|
||||||
let mut ret = resp_builder.body(resp.bytes().await.unwrap_or_default());
|
let mut resp = resp_builder.body(resp.bytes().await.unwrap_or_default());
|
||||||
*ret.headers_mut() = headers;
|
*resp.headers_mut() = headers;
|
||||||
ServerResponse::HttpResponse(ret)
|
ServerResponse::HttpResponse(resp)
|
||||||
}
|
}
|
||||||
|
|
||||||
#[allow(clippy::future_not_send, clippy::unused_async)]
|
#[allow(clippy::future_not_send, clippy::unused_async)]
|
||||||
|
|
Loading…
Reference in a new issue