diff --git a/lib/domain/libimaghabit/src/iter.rs b/lib/domain/libimaghabit/src/iter.rs index 416cbe66..4fcf7f14 100644 --- a/lib/domain/libimaghabit/src/iter.rs +++ b/lib/domain/libimaghabit/src/iter.rs @@ -53,6 +53,12 @@ impl From for HabitTemplateStoreIdIterator { pub struct HabitInstanceStoreIdIterator(StoreIdIterator); +impl HabitInstanceStoreIdIterator { + pub fn new(sid: StoreIdIterator) -> HabitInstanceStoreIdIterator { + HabitInstanceStoreIdIterator(sid) + } +} + impl Iterator for HabitInstanceStoreIdIterator { type Item = StoreId;