diff --git a/crates/index-scheduler/src/batch.rs b/crates/index-scheduler/src/batch.rs index 051ae776b..a8b67436e 100644 --- a/crates/index-scheduler/src/batch.rs +++ b/crates/index-scheduler/src/batch.rs @@ -34,7 +34,9 @@ use meilisearch_types::milli::documents::{obkv_to_object, DocumentsBatchReader, use meilisearch_types::milli::heed::CompactionOption; use meilisearch_types::milli::progress::Progress; use meilisearch_types::milli::update::new::indexer::{self, UpdateByFunction}; -use meilisearch_types::milli::update::{DocumentAdditionResult, IndexDocumentsMethod, Settings as MilliSettings}; +use meilisearch_types::milli::update::{ + DocumentAdditionResult, IndexDocumentsMethod, Settings as MilliSettings, +}; use meilisearch_types::milli::vector::parsed_vectors::{ExplicitVectors, VectorOrArrayOfVectors}; use meilisearch_types::milli::{self, Filter, ThreadPoolNoAbortBuilder}; use meilisearch_types::settings::{apply_settings_to_builder, Settings, Unchecked}; diff --git a/crates/meilisearch/src/option_test.rs b/crates/meilisearch/src/option_test.rs index 1fdb06718..80d21dad3 100644 --- a/crates/meilisearch/src/option_test.rs +++ b/crates/meilisearch/src/option_test.rs @@ -1,6 +1,7 @@ -use crate::option::Opt; use clap::Parser; +use crate::option::Opt; + #[test] fn test_valid_opt() { assert!(Opt::try_parse_from(Some("")).is_ok()); diff --git a/crates/milli/src/asc_desc.rs b/crates/milli/src/asc_desc.rs index c04748036..e75adf83d 100644 --- a/crates/milli/src/asc_desc.rs +++ b/crates/milli/src/asc_desc.rs @@ -176,7 +176,7 @@ impl From for SortError { AscDescError::ReservedKeyword { name } if name.starts_with("_geoPoint") => { SortError::BadGeoPointUsage { name } } - AscDescError::ReservedKeyword { name } if &name == RESERVED_GEO_FIELD_NAME => { + AscDescError::ReservedKeyword { name } if name == RESERVED_GEO_FIELD_NAME => { SortError::ReservedNameForSettings { name } } AscDescError::ReservedKeyword { name } if name.starts_with("_geoRadius") => { diff --git a/crates/milli/src/fieldids_weights_map.rs b/crates/milli/src/fieldids_weights_map.rs index 194e4649c..57c99f77f 100644 --- a/crates/milli/src/fieldids_weights_map.rs +++ b/crates/milli/src/fieldids_weights_map.rs @@ -4,7 +4,8 @@ use std::collections::HashMap; use serde::{Deserialize, Serialize}; -use crate::{constants::RESERVED_VECTORS_FIELD_NAME, FieldId, FieldsIdsMap, Weight}; +use crate::constants::RESERVED_VECTORS_FIELD_NAME; +use crate::{FieldId, FieldsIdsMap, Weight}; #[derive(Debug, Default, Serialize, Deserialize)] pub struct FieldidsWeightsMap { diff --git a/crates/milli/src/index.rs b/crates/milli/src/index.rs index bd832667b..9829df2ee 100644 --- a/crates/milli/src/index.rs +++ b/crates/milli/src/index.rs @@ -21,7 +21,6 @@ use crate::heed_codec::facet::{ use crate::heed_codec::{BEU16StrCodec, FstSetCodec, StrBEU16Codec, StrRefCodec}; use crate::order_by_map::OrderByMap; use crate::proximity::ProximityPrecision; - use crate::vector::{ArroyWrapper, Embedding, EmbeddingConfig}; use crate::{ default_criteria, CboRoaringBitmapCodec, Criterion, DocumentId, ExternalDocumentsIds, diff --git a/crates/milli/src/search/new/mod.rs b/crates/milli/src/search/new/mod.rs index d47f88830..49f08b521 100644 --- a/crates/milli/src/search/new/mod.rs +++ b/crates/milli/src/search/new/mod.rs @@ -49,8 +49,8 @@ pub use self::geo_sort::Strategy as GeoSortStrategy; use self::graph_based_ranking_rule::Words; use self::interner::Interned; use self::vector_sort::VectorSort; -use crate::index::PrefixSearch; use crate::constants::RESERVED_GEO_FIELD_NAME; +use crate::index::PrefixSearch; use crate::localized_attributes_rules::LocalizedFieldIds; use crate::score_details::{ScoreDetails, ScoringStrategy}; use crate::search::new::distinct::apply_distinct_rule; diff --git a/crates/milli/src/update/index_documents/mod.rs b/crates/milli/src/update/index_documents/mod.rs index 11ee6916b..d416c1a2b 100644 --- a/crates/milli/src/update/index_documents/mod.rs +++ b/crates/milli/src/update/index_documents/mod.rs @@ -27,7 +27,6 @@ pub use self::enrich::{extract_finite_float_from_value, DocumentId}; pub use self::helpers::*; pub use self::transform::{Transform, TransformOutput}; use super::new::StdResult; - use crate::documents::{obkv_to_object, DocumentsBatchReader}; use crate::error::{Error, InternalError}; use crate::index::{PrefixSearch, PrefixSettings};