diff --git a/meilisearch/src/analytics/mock_analytics.rs b/meilisearch/src/analytics/mock_analytics.rs index 4bd190f87..8fa1916a5 100644 --- a/meilisearch/src/analytics/mock_analytics.rs +++ b/meilisearch/src/analytics/mock_analytics.rs @@ -20,7 +20,7 @@ pub struct SearchAggregator; #[allow(dead_code)] impl SearchAggregator { pub fn from_query(_: &dyn Any, _: &dyn Any) -> Self { - Self::default() + Self } pub fn succeed(&mut self, _: &dyn Any) {} @@ -32,7 +32,7 @@ pub struct MultiSearchAggregator; #[allow(dead_code)] impl MultiSearchAggregator { pub fn from_queries(_: &dyn Any, _: &dyn Any) -> Self { - Self::default() + Self } pub fn succeed(&mut self) {} @@ -44,7 +44,7 @@ pub struct FacetSearchAggregator; #[allow(dead_code)] impl FacetSearchAggregator { pub fn from_query(_: &dyn Any, _: &dyn Any) -> Self { - Self::default() + Self } pub fn succeed(&mut self, _: &dyn Any) {} diff --git a/milli/src/update/index_documents/mod.rs b/milli/src/update/index_documents/mod.rs index 0dae611c9..f50b81d2d 100644 --- a/milli/src/update/index_documents/mod.rs +++ b/milli/src/update/index_documents/mod.rs @@ -359,8 +359,8 @@ where geo_fields_ids, vectors_field_id, stop_words, - separators.as_ref().map(Vec::as_slice), - dictionary.as_ref().map(Vec::as_slice), + separators.as_deref(), + dictionary.as_deref(), max_positions_per_attributes, exact_attributes, )