diff options
-rw-r--r-- | lib/domain/libimagcontact/src/store.rs | 10 |
1 files changed, 1 insertions, 9 deletions
diff --git a/lib/domain/libimagcontact/src/store.rs b/lib/domain/libimagcontact/src/store.rs index dc2fa5a5..b39d4e04 100644 --- a/lib/domain/libimagcontact/src/store.rs +++ b/lib/domain/libimagcontact/src/store.rs @@ -77,15 +77,7 @@ impl<'a> ContactStore<'a> for Store { } fn all_contacts(&'a self) -> Result<StoreIdIterator> { - let iter = self - .entries()? - .without_store() - .filter(|id| match *id { - Ok(ref id) => id.is_in_collection(&["contact"]), - Err(_) => true, - }); - - Ok(StoreIdIterator::new(Box::new(iter))) + self.entries().map(|iter| iter.in_collection("contact").without_store()) } } |