mirror of
				https://github.com/meilisearch/meilisearch.git
				synced 2025-10-26 05:26:27 +00:00 
			
		
		
		
	Simplify a Rust lifetime trick
This commit is contained in:
		| @@ -246,14 +246,13 @@ impl<'a> FacetDistribution<'a> { | ||||
|             } | ||||
|             _ => { | ||||
|                 let universe; | ||||
|                 let candidates; | ||||
|                 match &self.candidates { | ||||
|                     Some(cnd) => candidates = cnd, | ||||
|                 let candidates = match &self.candidates { | ||||
|                     Some(cnd) => cnd, | ||||
|                     None => { | ||||
|                         universe = self.index.documents_ids(self.rtxn)?; | ||||
|                         candidates = &universe; | ||||
|                         &universe | ||||
|                     } | ||||
|                 } | ||||
|                 }; | ||||
|  | ||||
|                 self.facet_numbers_distribution_from_facet_levels( | ||||
|                     field_id, | ||||
|   | ||||
		Reference in New Issue
	
	Block a user