1
0
镜像自地址 https://github.com/meilisearch/MeiliSearch 已同步 2025-07-01 02:48:31 +02:00

Fix clippy

这个提交包含在:
ManyTheFish 2025-03-11 14:33:54 +01:00
父节点 7072fe9780
当前提交 8790880589
共有 2 个文件被更改,包括 7 次插入8 次删除

查看文件

@ -214,10 +214,9 @@ pub struct MetadataBuilder {
impl MetadataBuilder { impl MetadataBuilder {
pub fn from_index(index: &Index, rtxn: &RoTxn) -> Result<Self> { pub fn from_index(index: &Index, rtxn: &RoTxn) -> Result<Self> {
let searchable_attributes = match index.user_defined_searchable_fields(rtxn)? { let searchable_attributes = index
Some(fields) => Some(fields.into_iter().map(|s| s.to_string()).collect()), .user_defined_searchable_fields(rtxn)?
None => None, .map(|fields| fields.into_iter().map(|s| s.to_string()).collect());
};
let filterable_attributes = index.filterable_attributes_rules(rtxn)?; let filterable_attributes = index.filterable_attributes_rules(rtxn)?;
let sortable_attributes = index.sortable_fields(rtxn)?; let sortable_attributes = index.sortable_fields(rtxn)?;
let localized_attributes = index.localized_attributes_rules(rtxn)?; let localized_attributes = index.localized_attributes_rules(rtxn)?;

查看文件

@ -57,10 +57,10 @@ impl<'a, 'b, 'extractor> Extractor<'extractor> for FacetedExtractorData<'a, 'b>
let change = change?; let change = change?;
FacetedDocidsExtractor::extract_document_change( FacetedDocidsExtractor::extract_document_change(
context, context,
&self.filterable_attributes, self.filterable_attributes,
&self.sortable_fields, self.sortable_fields,
&self.asc_desc_fields, self.asc_desc_fields,
&self.distinct_field, self.distinct_field,
self.is_geo_enabled, self.is_geo_enabled,
change, change,
self.sender, self.sender,