diff --git a/src/people.rs b/src/people.rs index f0d32e34..48ed93d6 100644 --- a/src/people.rs +++ b/src/people.rs @@ -960,9 +960,12 @@ impl ContextPeopleExt for Context { T::setup(self); let mut result = Vec::new(); - self.query_people_internal(| person | { - result.push(person); - }, q.get_query()); + self.query_people_internal( + |person| { + result.push(person); + }, + q.get_query(), + ); result } @@ -973,10 +976,13 @@ impl ContextPeopleExt for Context { } T::setup(self); - let mut count : usize = 0; - self.query_people_internal(| _person | { - count += 1; - }, q.get_query()); + let mut count: usize = 0; + self.query_people_internal( + |_person| { + count += 1; + }, + q.get_query(), + ); count } @@ -1018,7 +1024,6 @@ impl ContextPeopleExt for Context { } } - trait ContextPeopleExtInternal { fn register_indexer(&self); fn add_to_index_maybe(&mut self, person_id: PersonId, property: T);