From 0f2143e7fd1f040b56db08bf5e19ff12b279a788 Mon Sep 17 00:00:00 2001 From: tamo Date: Fri, 26 Mar 2021 14:15:12 +0100 Subject: [PATCH] remove the now useless dead_code flags --- meilisearch-http/src/index/search.rs | 1 - meilisearch-http/src/index_controller/snapshot.rs | 1 - meilisearch-http/tests/common/index.rs | 1 - 3 files changed, 3 deletions(-) diff --git a/meilisearch-http/src/index/search.rs b/meilisearch-http/src/index/search.rs index 2002266a1..7311687d2 100644 --- a/meilisearch-http/src/index/search.rs +++ b/meilisearch-http/src/index/search.rs @@ -20,7 +20,6 @@ const fn default_search_limit() -> usize { #[derive(Deserialize)] #[serde(rename_all = "camelCase", deny_unknown_fields)] -#[allow(dead_code)] pub struct SearchQuery { pub q: Option, pub offset: Option, diff --git a/meilisearch-http/src/index_controller/snapshot.rs b/meilisearch-http/src/index_controller/snapshot.rs index b494d2481..8557fe04e 100644 --- a/meilisearch-http/src/index_controller/snapshot.rs +++ b/meilisearch-http/src/index_controller/snapshot.rs @@ -11,7 +11,6 @@ use super::update_actor::UpdateActorHandle; use super::uuid_resolver::UuidResolverHandle; use crate::helpers::compression; -#[allow(dead_code)] pub struct SnapshotService { uuid_resolver_handle: R, update_handle: U, diff --git a/meilisearch-http/tests/common/index.rs b/meilisearch-http/tests/common/index.rs index 8fda99ef9..a7a9a5378 100644 --- a/meilisearch-http/tests/common/index.rs +++ b/meilisearch-http/tests/common/index.rs @@ -96,7 +96,6 @@ impl Index<'_> { self.service.get(url).await } - #[allow(dead_code)] pub async fn list_updates(&self) -> (Value, StatusCode) { let url = format!("/indexes/{}/updates", self.uid); self.service.get(url).await