From c6f14279d7c4a59adb359365b964765b049dfbeb Mon Sep 17 00:00:00 2001 From: Mahmoud Rawas Date: Wed, 8 Jan 2025 14:45:57 +1100 Subject: [PATCH] remove unused imports. --- crates/meilisearch/tests/batches/mod.rs | 3 +-- crates/meilisearch/tests/documents/add_documents.rs | 1 - crates/meilisearch/tests/search/restrict_searchable.rs | 1 - crates/meilisearch/tests/settings/tokenizer_customization.rs | 1 - 4 files changed, 1 insertion(+), 5 deletions(-) diff --git a/crates/meilisearch/tests/batches/mod.rs b/crates/meilisearch/tests/batches/mod.rs index d72656321..b551a7b78 100644 --- a/crates/meilisearch/tests/batches/mod.rs +++ b/crates/meilisearch/tests/batches/mod.rs @@ -1,6 +1,5 @@ mod errors; -use byte_unit::rust_decimal::prelude::ToPrimitive; use meili_snap::insta::assert_json_snapshot; use meili_snap::snapshot; @@ -170,7 +169,7 @@ async fn list_batches_type_filtered() { let index = server.index("test"); let (task, _) = index.create(None).await; index.wait_task(task.uid()).await.succeeded(); - let (task, _) = index.delete().await; + let (_task, _) = index.delete().await; let (response, code) = index.filtered_batches(&["indexCreation"], &[], &[]).await; assert_eq!(code, 200, "{}", response); assert_eq!(response["results"].as_array().unwrap().len(), 1); diff --git a/crates/meilisearch/tests/documents/add_documents.rs b/crates/meilisearch/tests/documents/add_documents.rs index 688ebccb1..ca0193d95 100644 --- a/crates/meilisearch/tests/documents/add_documents.rs +++ b/crates/meilisearch/tests/documents/add_documents.rs @@ -1,5 +1,4 @@ use actix_web::test; -use actix_web::web::resource; use meili_snap::{json_string, snapshot}; use meilisearch::Opt; use time::format_description::well_known::Rfc3339; diff --git a/crates/meilisearch/tests/search/restrict_searchable.rs b/crates/meilisearch/tests/search/restrict_searchable.rs index 600adc0de..ce99c4047 100644 --- a/crates/meilisearch/tests/search/restrict_searchable.rs +++ b/crates/meilisearch/tests/search/restrict_searchable.rs @@ -1,4 +1,3 @@ -use actix_web::web::resource; use meili_snap::{json_string, snapshot}; use once_cell::sync::Lazy; diff --git a/crates/meilisearch/tests/settings/tokenizer_customization.rs b/crates/meilisearch/tests/settings/tokenizer_customization.rs index 844eb3b98..190918b34 100644 --- a/crates/meilisearch/tests/settings/tokenizer_customization.rs +++ b/crates/meilisearch/tests/settings/tokenizer_customization.rs @@ -1,4 +1,3 @@ -use actix_web::web::resource; use meili_snap::{json_string, snapshot}; use crate::common::Server;