Implement ContactStore::all_contacts()

This commit is contained in:
Matthias Beyer 2018-03-12 12:52:24 +01:00
parent d3b38b5a90
commit 3bf1b6ccec

View file

@ -109,7 +109,12 @@ impl<'a> ContactStore<'a> for Store {
} }
fn all_contacts(&'a self) -> Result<StoreIdIterator> { fn all_contacts(&'a self) -> Result<StoreIdIterator> {
unimplemented!() let iter = self
.entries()?
.without_store()
.filter(|id| id.is_in_collection(&["contact"]));
Ok(StoreIdIterator::new(Box::new(iter)))
} }
} }