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>
This commit is contained in:
Matthias Beyer 2019-01-05 01:09:12 +01:00
parent d2c031920a
commit 207fd88c3d

View file

@ -91,8 +91,8 @@ impl<'a, 'b> Wiki<'a, 'b> {
entry.add_internal_link(&mut index).map(|_| entry) entry.add_internal_link(&mut index).map(|_| entry)
} }
pub fn all_ids(&self) -> Result<StoreIdIterator> { pub fn all_ids(&self) -> Result<Entries<'a>> {
self.0.entries().map(|iter| iter.in_collection("wiki").without_store()) self.0.entries().map(|iter| iter.in_collection("wiki"))
} }
pub fn delete_entry<EN: AsRef<str>>(&self, entry_name: EN) -> Result<()> { pub fn delete_entry<EN: AsRef<str>>(&self, entry_name: EN) -> Result<()> {