diff --git a/crates/milli/src/update/index_documents/helpers/grenad_helpers.rs b/crates/milli/src/update/index_documents/helpers/grenad_helpers.rs index 7b53ee2b5..9a143fa18 100644 --- a/crates/milli/src/update/index_documents/helpers/grenad_helpers.rs +++ b/crates/milli/src/update/index_documents/helpers/grenad_helpers.rs @@ -124,7 +124,7 @@ impl GrenadParameters { /// This should be called inside of a rayon thread pool, /// otherwise, it will take the global number of threads. pub fn max_memory_by_thread(&self) -> Option { - self.max_memory.map(|max_memory| (max_memory / rayon::current_num_threads())) + self.max_memory.map(|max_memory| max_memory / rayon::current_num_threads()) } }