From 2e7c17d5dc535e7ca7db1353fe8c788c4ab31be1 Mon Sep 17 00:00:00 2001 From: Matthias Beyer Date: Sun, 30 Dec 2018 17:40:11 +0100 Subject: [PATCH] Fix libimagcontact for new StoreId interface with Entries iterator Signed-off-by: Matthias Beyer --- lib/domain/libimagcontact/src/store.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/lib/domain/libimagcontact/src/store.rs b/lib/domain/libimagcontact/src/store.rs index b39d4e04..aab35ab4 100644 --- a/lib/domain/libimagcontact/src/store.rs +++ b/lib/domain/libimagcontact/src/store.rs @@ -29,9 +29,9 @@ use failure::Fallible as Result; use libimagstore::storeid::IntoStoreId; use libimagstore::storeid::StoreId; +use libimagstore::iter::Entries; use libimagstore::store::Store; use libimagstore::store::FileLockEntry; -use libimagstore::storeid::StoreIdIterator; use libimagentryutil::isa::Is; use contact::IsContact; @@ -51,7 +51,7 @@ pub trait ContactStore<'a> { // getting - fn all_contacts(&'a self) -> Result; + fn all_contacts(&'a self) -> Result>; } /// The extension for the Store to work with contacts @@ -76,8 +76,8 @@ impl<'a> ContactStore<'a> for Store { postprocess_fetched_entry(self.retrieve(sid)?, value) } - fn all_contacts(&'a self) -> Result { - self.entries().map(|iter| iter.in_collection("contact").without_store()) + fn all_contacts(&'a self) -> Result> { + self.entries().map(|ent| ent.in_collection("contact")) } }