summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthias Beyer <mail@beyermatthias.de>2019-01-05 01:09:12 +0100
committerMatthias Beyer <mail@beyermatthias.de>2019-02-15 20:53:29 +0100
commit187b9489854c40adcd28c7f11eb8679d85a3e097 (patch)
tree139f9d6b1e479242e951b71c21797294c00648b5
parent83415e78b97baa615bb2129c034463fd57d6eb29 (diff)
downloadimag-187b9489854c40adcd28c7f11eb8679d85a3e097.zip
imag-187b9489854c40adcd28c7f11eb8679d85a3e097.tar.gz
Adapt to new libimagstore::iter::Entries API
Use Entries::into_storeid_iter() for transforming iterator into right type. Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
-rw-r--r--lib/domain/libimagdiary/src/diary.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/domain/libimagdiary/src/diary.rs b/lib/domain/libimagdiary/src/diary.rs
index 5c500ce..e61902e 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<DiaryEntryIterator> {
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<DiaryNameIterator> {
self.entries()
- .map(|it| DiaryNameIterator::new(it.without_store()))
+ .map(|it| DiaryNameIterator::new(it.into_storeid_iter()))
.map_err(Error::from)
}