Skip to content

Commit

Permalink
Format
Browse files Browse the repository at this point in the history
  • Loading branch information
ekr-cfa committed Nov 27, 2024
1 parent 5fb9d76 commit 3cc77e3
Showing 1 changed file with 13 additions and 8 deletions.
21 changes: 13 additions & 8 deletions src/people.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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
}

Expand All @@ -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
}

Expand Down Expand Up @@ -1018,7 +1024,6 @@ impl ContextPeopleExt for Context {
}
}


trait ContextPeopleExtInternal {
fn register_indexer<T: PersonProperty + 'static>(&self);
fn add_to_index_maybe<T: PersonProperty + 'static>(&mut self, person_id: PersonId, property: T);
Expand Down

0 comments on commit 3cc77e3

Please sign in to comment.