From d5da063666c32642452849a7d484933eb83b3989 Mon Sep 17 00:00:00 2001 From: mohandasspat Date: Mon, 22 Aug 2022 10:52:09 +0530 Subject: [PATCH] clippy & fmt fixed --- meilisearch-http/tests/auth/payload.rs | 10 +++++----- meilisearch-http/tests/common/service.rs | 12 ++++++------ meilisearch-http/tests/content_type.rs | 4 ++-- .../tests/documents/add_documents.rs | 18 +++++++++--------- 4 files changed, 22 insertions(+), 22 deletions(-) diff --git a/meilisearch-http/tests/auth/payload.rs b/meilisearch-http/tests/auth/payload.rs index ae9ac65fa..4437cd5f7 100644 --- a/meilisearch-http/tests/auth/payload.rs +++ b/meilisearch-http/tests/auth/payload.rs @@ -19,7 +19,7 @@ async fn error_api_key_bad_content_types() { &server.service.meilisearch, &server.service.auth, true, - &server.service.options, + server.service.options, analytics::MockAnalytics::new(&server.service.options).0 )) .await; @@ -91,7 +91,7 @@ async fn error_api_key_empty_content_types() { &server.service.meilisearch, &server.service.auth, true, - &server.service.options, + server.service.options, analytics::MockAnalytics::new(&server.service.options).0 )) .await; @@ -163,7 +163,7 @@ async fn error_api_key_missing_content_types() { &server.service.meilisearch, &server.service.auth, true, - &server.service.options, + server.service.options, analytics::MockAnalytics::new(&server.service.options).0 )) .await; @@ -227,7 +227,7 @@ async fn error_api_key_empty_payload() { &server.service.meilisearch, &server.service.auth, true, - &server.service.options, + server.service.options, analytics::MockAnalytics::new(&server.service.options).0 )) .await; @@ -283,7 +283,7 @@ async fn error_api_key_malformed_payload() { &server.service.meilisearch, &server.service.auth, true, - &server.service.options, + server.service.options, analytics::MockAnalytics::new(&server.service.options).0 )) .await; diff --git a/meilisearch-http/tests/common/service.rs b/meilisearch-http/tests/common/service.rs index e3949ce67..0834abf8d 100644 --- a/meilisearch-http/tests/common/service.rs +++ b/meilisearch-http/tests/common/service.rs @@ -18,7 +18,7 @@ impl Service { &self.meilisearch, &self.auth, true, - &self.options, + self.options, analytics::MockAnalytics::new(&self.options).0 )) .await; @@ -46,7 +46,7 @@ impl Service { &self.meilisearch, &self.auth, true, - &self.options, + self.options, analytics::MockAnalytics::new(&self.options).0 )) .await; @@ -72,7 +72,7 @@ impl Service { &self.meilisearch, &self.auth, true, - &self.options, + self.options, analytics::MockAnalytics::new(&self.options).0 )) .await; @@ -95,7 +95,7 @@ impl Service { &self.meilisearch, &self.auth, true, - &self.options, + self.options, analytics::MockAnalytics::new(&self.options).0 )) .await; @@ -118,7 +118,7 @@ impl Service { &self.meilisearch, &self.auth, true, - &self.options, + self.options, analytics::MockAnalytics::new(&self.options).0 )) .await; @@ -141,7 +141,7 @@ impl Service { &self.meilisearch, &self.auth, true, - &self.options, + self.options, analytics::MockAnalytics::new(&self.options).0 )) .await; diff --git a/meilisearch-http/tests/content_type.rs b/meilisearch-http/tests/content_type.rs index eace67a08..47e224bd1 100644 --- a/meilisearch-http/tests/content_type.rs +++ b/meilisearch-http/tests/content_type.rs @@ -63,7 +63,7 @@ async fn error_json_bad_content_type() { &server.service.meilisearch, &server.service.auth, true, - &server.service.options, + server.service.options, analytics::MockAnalytics::new(&server.service.options).0 )) .await; @@ -146,7 +146,7 @@ async fn extract_actual_content_type() { &server.service.meilisearch, &server.service.auth, true, - &server.service.options, + server.service.options, analytics::MockAnalytics::new(&server.service.options).0 )) .await; diff --git a/meilisearch-http/tests/documents/add_documents.rs b/meilisearch-http/tests/documents/add_documents.rs index ebd5f58d3..b5819ad98 100644 --- a/meilisearch-http/tests/documents/add_documents.rs +++ b/meilisearch-http/tests/documents/add_documents.rs @@ -21,7 +21,7 @@ async fn add_documents_test_json_content_types() { &server.service.meilisearch, &server.service.auth, true, - &server.service.options, + server.service.options, analytics::MockAnalytics::new(&server.service.options).0 )) .await; @@ -67,7 +67,7 @@ async fn error_add_documents_test_bad_content_types() { &server.service.meilisearch, &server.service.auth, true, - &server.service.options, + server.service.options, analytics::MockAnalytics::new(&server.service.options).0 )) .await; @@ -135,7 +135,7 @@ async fn error_add_documents_test_no_content_type() { &server.service.meilisearch, &server.service.auth, true, - &server.service.options, + server.service.options, analytics::MockAnalytics::new(&server.service.options).0 )) .await; @@ -195,7 +195,7 @@ async fn error_add_malformed_csv_documents() { &server.service.meilisearch, &server.service.auth, true, - &server.service.options, + server.service.options, analytics::MockAnalytics::new(&server.service.options).0 )) .await; @@ -257,7 +257,7 @@ async fn error_add_malformed_json_documents() { &server.service.meilisearch, &server.service.auth, true, - &server.service.options, + server.service.options, analytics::MockAnalytics::new(&server.service.options).0 )) .await; @@ -369,7 +369,7 @@ async fn error_add_malformed_ndjson_documents() { &server.service.meilisearch, &server.service.auth, true, - &server.service.options, + server.service.options, analytics::MockAnalytics::new(&server.service.options).0 )) .await; @@ -429,7 +429,7 @@ async fn error_add_missing_payload_csv_documents() { &server.service.meilisearch, &server.service.auth, true, - &server.service.options, + server.service.options, analytics::MockAnalytics::new(&server.service.options).0 )) .await; @@ -481,7 +481,7 @@ async fn error_add_missing_payload_json_documents() { &server.service.meilisearch, &server.service.auth, true, - &server.service.options, + server.service.options, analytics::MockAnalytics::new(&server.service.options).0 )) .await; @@ -533,7 +533,7 @@ async fn error_add_missing_payload_ndjson_documents() { &server.service.meilisearch, &server.service.auth, true, - &server.service.options, + server.service.options, analytics::MockAnalytics::new(&server.service.options).0 )) .await;