From 4be23efe6642e25ef95f3a50f93055d64cea39b0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cl=C3=A9ment=20Renault?= Date: Fri, 13 Dec 2019 11:46:53 +0100 Subject: [PATCH] Remove the AttrCount type Could probably be reintroduced later --- meilisearch-core/src/lib.rs | 2 +- meilisearch-types/src/lib.rs | 8 -------- 2 files changed, 1 insertion(+), 9 deletions(-) diff --git a/meilisearch-core/src/lib.rs b/meilisearch-core/src/lib.rs index ad16182a1..a4dedbb20 100644 --- a/meilisearch-core/src/lib.rs +++ b/meilisearch-core/src/lib.rs @@ -28,7 +28,7 @@ pub use self::ranked_map::RankedMap; pub use self::raw_document::RawDocument; pub use self::store::Index; pub use self::update::{EnqueuedUpdateResult, ProcessedUpdateResult, UpdateStatus, UpdateType}; -pub use meilisearch_types::{DocIndex, DocumentId, Highlight, AttrCount}; +pub use meilisearch_types::{DocIndex, DocumentId, Highlight}; use compact_arena::SmallArena; use crate::bucket_sort::{QueryWordAutomaton, PostingsListView}; diff --git a/meilisearch-types/src/lib.rs b/meilisearch-types/src/lib.rs index 3419c61fd..c02281a5f 100644 --- a/meilisearch-types/src/lib.rs +++ b/meilisearch-types/src/lib.rs @@ -63,11 +63,3 @@ pub struct Highlight { /// without needing to run the tokenizer again. pub char_length: u16, } - -#[derive(Debug, Copy, Clone, PartialEq, Eq, PartialOrd, Ord, Hash)] -#[cfg_attr(feature = "zerocopy", derive(AsBytes, FromBytes))] -#[repr(C)] -pub struct AttrCount { - pub attr: u16, - pub count: u16, -}