mirror of
				https://github.com/meilisearch/meilisearch.git
				synced 2025-11-04 01:46:28 +00:00 
			
		
		
		
	Use f32::min and f32::max
This commit is contained in:
		@@ -408,10 +408,8 @@ impl FederatedFacets {
 | 
				
			|||||||
                    std::collections::btree_map::Entry::Occupied(mut entry) => {
 | 
					                    std::collections::btree_map::Entry::Occupied(mut entry) => {
 | 
				
			||||||
                        let stats = entry.get_mut();
 | 
					                        let stats = entry.get_mut();
 | 
				
			||||||
 | 
					
 | 
				
			||||||
                        stats.min =
 | 
					                        stats.min = f64::min(stats.min, index_stats.min);
 | 
				
			||||||
                            if stats.min <= index_stats.min { stats.min } else { index_stats.min };
 | 
					                        stats.max = f64::max(stats.max, index_stats.max);
 | 
				
			||||||
                        stats.max =
 | 
					 | 
				
			||||||
                            if stats.max >= index_stats.max { stats.max } else { index_stats.max };
 | 
					 | 
				
			||||||
                    }
 | 
					                    }
 | 
				
			||||||
                }
 | 
					                }
 | 
				
			||||||
            }
 | 
					            }
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user