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:
parent
d2c031920a
commit
207fd88c3d
1 changed files with 2 additions and 2 deletions
|
@ -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<()> {
|
||||||
|
|
Loading…
Reference in a new issue