From 187b9489854c40adcd28c7f11eb8679d85a3e097 Mon Sep 17 00:00:00 2001 From: Matthias Beyer Date: Sat, 5 Jan 2019 01:09:12 +0100 Subject: [PATCH] Adapt to new libimagstore::iter::Entries API Use Entries::into_storeid_iter() for transforming iterator into right type. Signed-off-by: Matthias Beyer --- lib/domain/libimagdiary/src/diary.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/domain/libimagdiary/src/diary.rs b/lib/domain/libimagdiary/src/diary.rs index 5c500ce0..e61902eb 100644 --- a/lib/domain/libimagdiary/src/diary.rs +++ b/lib/domain/libimagdiary/src/diary.rs @@ -95,7 +95,7 @@ impl Diary for Store { fn entries(&self, diary_name: &str) -> Result { debug!("Building iterator for module 'diary' with diary name = '{}'", diary_name); Store::entries(self) - .map(|iter| DiaryEntryIterator::new(String::from(diary_name), iter.without_store())) + .map(|iter| DiaryEntryIterator::new(String::from(diary_name), iter.into_storeid_iter())) } /// get the id of the youngest entry @@ -151,7 +151,7 @@ impl Diary for Store { /// Get all diary names fn diary_names(&self) -> Result { self.entries() - .map(|it| DiaryNameIterator::new(it.without_store())) + .map(|it| DiaryNameIterator::new(it.into_storeid_iter())) .map_err(Error::from) }