mirror of
https://github.com/meilisearch/MeiliSearch
synced 2024-11-25 22:34:28 +01:00
Use saturating add
This commit is contained in:
parent
13e3f8faae
commit
359b90288d
@ -731,8 +731,9 @@ impl SearchAggregator {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// attributes_to_search_on
|
// attributes_to_search_on
|
||||||
self.attributes_to_search_on_total_number_of_uses +=
|
self.attributes_to_search_on_total_number_of_uses = self
|
||||||
other.attributes_to_search_on_total_number_of_uses;
|
.attributes_to_search_on_total_number_of_uses
|
||||||
|
.saturating_add(other.attributes_to_search_on_total_number_of_uses);
|
||||||
|
|
||||||
// q
|
// q
|
||||||
self.max_terms_number = self.max_terms_number.max(other.max_terms_number);
|
self.max_terms_number = self.max_terms_number.max(other.max_terms_number);
|
||||||
|
Loading…
Reference in New Issue
Block a user