mirror of
https://github.com/meilisearch/meilisearch.git
synced 2025-07-26 16:21:07 +00:00
remove all warnings
This commit is contained in:
@ -148,17 +148,3 @@ impl From<CompatIndexV5ToV6> for CompatIndex {
|
||||
CompatIndex::Compat(value)
|
||||
}
|
||||
}
|
||||
|
||||
/// Parses the v1 version of the Asc ranking rules `asc(price)`and returns the field name.
|
||||
pub fn asc_ranking_rule(text: &str) -> Option<&str> {
|
||||
text.split_once("asc(")
|
||||
.and_then(|(_, tail)| tail.rsplit_once(')'))
|
||||
.map(|(field, _)| field)
|
||||
}
|
||||
|
||||
/// Parses the v1 version of the Desc ranking rules `desc(price)`and returns the field name.
|
||||
pub fn desc_ranking_rule(text: &str) -> Option<&str> {
|
||||
text.split_once("desc(")
|
||||
.and_then(|(_, tail)| tail.rsplit_once(')'))
|
||||
.map(|(field, _)| field)
|
||||
}
|
||||
|
@ -4,7 +4,7 @@ use std::str::FromStr;
|
||||
use time::OffsetDateTime;
|
||||
use uuid::Uuid;
|
||||
|
||||
use crate::reader::{v2, v3, DumpReader, IndexReader};
|
||||
use crate::reader::{v2, v3};
|
||||
use crate::Result;
|
||||
|
||||
use super::v3_to_v4::CompatV3ToV4;
|
||||
@ -19,7 +19,8 @@ impl CompatV2ToV3 {
|
||||
}
|
||||
|
||||
pub fn index_uuid(&self) -> Vec<v3::meta::IndexUuid> {
|
||||
self.index_uuid()
|
||||
self.from
|
||||
.index_uuid()
|
||||
.into_iter()
|
||||
.map(|index| v3::meta::IndexUuid {
|
||||
uid: index.uid,
|
||||
@ -54,7 +55,7 @@ impl CompatV2ToV3 {
|
||||
pub fn tasks(
|
||||
&mut self,
|
||||
) -> Box<dyn Iterator<Item = Result<(v3::Task, Option<v3::UpdateFile>)>> + '_> {
|
||||
let indexes = self.from.index_uuid.clone();
|
||||
let _indexes = self.from.index_uuid.clone();
|
||||
|
||||
Box::new(
|
||||
self.from
|
||||
@ -241,7 +242,7 @@ pub fn update_from_unchecked_update_meta(update: v2::updates::UpdateMeta) -> v3:
|
||||
match update {
|
||||
v2::updates::UpdateMeta::DocumentsAddition {
|
||||
method,
|
||||
format,
|
||||
format: _,
|
||||
primary_key,
|
||||
} => v3::updates::Update::DocumentAddition {
|
||||
primary_key,
|
||||
|
@ -1,4 +1,4 @@
|
||||
use crate::reader::{v3, v4, DumpReader, IndexReader};
|
||||
use crate::reader::{v3, v4};
|
||||
use crate::Result;
|
||||
|
||||
use super::v2_to_v3::{CompatIndexV2ToV3, CompatV2ToV3};
|
||||
|
@ -1,4 +1,4 @@
|
||||
use crate::reader::{v4, v5, DumpReader, IndexReader};
|
||||
use crate::reader::{v4, v5};
|
||||
use crate::Result;
|
||||
|
||||
use super::v3_to_v4::{CompatIndexV3ToV4, CompatV3ToV4};
|
||||
|
@ -1,4 +1,4 @@
|
||||
use crate::reader::{v5, v6, DumpReader, IndexReader};
|
||||
use crate::reader::{v5, v6};
|
||||
use crate::Result;
|
||||
|
||||
use super::v4_to_v5::{CompatIndexV4ToV5, CompatV4ToV5};
|
||||
|
Reference in New Issue
Block a user