From e79f6f87f6482079df7026751483821be03f40c2 Mon Sep 17 00:00:00 2001 From: Tamo Date: Thu, 16 Feb 2023 18:00:40 +0100 Subject: [PATCH] make cargo fmt&clippy happy --- meilisearch/src/routes/indexes/documents.rs | 1 + meilisearch/tests/documents/errors.rs | 14 ++++++++++---- 2 files changed, 11 insertions(+), 4 deletions(-) diff --git a/meilisearch/src/routes/indexes/documents.rs b/meilisearch/src/routes/indexes/documents.rs index 67d3f6a31..529635704 100644 --- a/meilisearch/src/routes/indexes/documents.rs +++ b/meilisearch/src/routes/indexes/documents.rs @@ -239,6 +239,7 @@ pub async fn update_documents( Ok(HttpResponse::Accepted().json(task)) } +#[allow(clippy::too_many_arguments)] async fn document_addition( mime_type: Option, index_scheduler: GuardedData, Data>, diff --git a/meilisearch/tests/documents/errors.rs b/meilisearch/tests/documents/errors.rs index fcccf8e15..7ee3132d6 100644 --- a/meilisearch/tests/documents/errors.rs +++ b/meilisearch/tests/documents/errors.rs @@ -298,8 +298,9 @@ async fn replace_documents_bad_csv_delimiter() { } "###); - let (response, code) = - index.raw_add_documents("", Some("application/json"), &format!("?csvDelimiter={}", encode("🍰"))).await; + let (response, code) = index + .raw_add_documents("", Some("application/json"), &format!("?csvDelimiter={}", encode("🍰"))) + .await; snapshot!(code, @"400 Bad Request"); snapshot!(json_string!(response), @r###" { @@ -340,8 +341,13 @@ async fn update_documents_bad_csv_delimiter() { } "###); - let (response, code) = - index.raw_update_documents("", Some("application/json"), &format!("?csvDelimiter={}", encode("🍰"))).await; + let (response, code) = index + .raw_update_documents( + "", + Some("application/json"), + &format!("?csvDelimiter={}", encode("🍰")), + ) + .await; snapshot!(code, @"400 Bad Request"); snapshot!(json_string!(response), @r###" {