mirror of
				https://github.com/meilisearch/meilisearch.git
				synced 2025-11-04 09:56:28 +00:00 
			
		
		
		
	Fix clippy
This commit is contained in:
		@@ -214,10 +214,9 @@ pub struct MetadataBuilder {
 | 
			
		||||
 | 
			
		||||
impl MetadataBuilder {
 | 
			
		||||
    pub fn from_index(index: &Index, rtxn: &RoTxn) -> Result<Self> {
 | 
			
		||||
        let searchable_attributes = match index.user_defined_searchable_fields(rtxn)? {
 | 
			
		||||
            Some(fields) => Some(fields.into_iter().map(|s| s.to_string()).collect()),
 | 
			
		||||
            None => None,
 | 
			
		||||
        };
 | 
			
		||||
        let searchable_attributes = index
 | 
			
		||||
            .user_defined_searchable_fields(rtxn)?
 | 
			
		||||
            .map(|fields| fields.into_iter().map(|s| s.to_string()).collect());
 | 
			
		||||
        let filterable_attributes = index.filterable_attributes_rules(rtxn)?;
 | 
			
		||||
        let sortable_attributes = index.sortable_fields(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?;
 | 
			
		||||
            FacetedDocidsExtractor::extract_document_change(
 | 
			
		||||
                context,
 | 
			
		||||
                &self.filterable_attributes,
 | 
			
		||||
                &self.sortable_fields,
 | 
			
		||||
                &self.asc_desc_fields,
 | 
			
		||||
                &self.distinct_field,
 | 
			
		||||
                self.filterable_attributes,
 | 
			
		||||
                self.sortable_fields,
 | 
			
		||||
                self.asc_desc_fields,
 | 
			
		||||
                self.distinct_field,
 | 
			
		||||
                self.is_geo_enabled,
 | 
			
		||||
                change,
 | 
			
		||||
                self.sender,
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user