makes clippy happy

This commit is contained in:
Tamo 2021-10-06 12:33:25 +02:00
parent 9a1e44dc78
commit 66dbd3cd34
No known key found for this signature in database
GPG key ID: 20CD8020AFA88D69
3 changed files with 5 additions and 4 deletions

View file

@ -177,7 +177,7 @@ async fn document_addition(
body: Payload,
method: IndexDocumentsMethod,
) -> Result<HttpResponse, ResponseError> {
const ACCEPTED_CONTENT_TYPE: Lazy<Vec<String>> = Lazy::new(|| {
static ACCEPTED_CONTENT_TYPE: Lazy<Vec<String>> = Lazy::new(|| {
vec![
"application/json".to_string(),
"application/x-ndjson".to_string(),