diff options
Diffstat (limited to 'lib/domain/libimagtodo/src/iter.rs')
-rw-r--r-- | lib/domain/libimagtodo/src/iter.rs | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/lib/domain/libimagtodo/src/iter.rs b/lib/domain/libimagtodo/src/iter.rs index 5809802e..45d7a7c8 100644 --- a/lib/domain/libimagtodo/src/iter.rs +++ b/lib/domain/libimagtodo/src/iter.rs @@ -17,22 +17,22 @@ // Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA // -use libimagstore::storeid::StoreIdIterator; +use libimagstore::iter::Entries; use libimagstore::storeid::StoreId; use failure::Fallible as Result; -pub struct TaskIdIterator(StoreIdIterator); +pub struct TaskIdIterator<'a>(Entries<'a>); -impl TaskIdIterator { +impl<'a> TaskIdIterator<'a> { - pub fn new(inner: StoreIdIterator) -> Self { + pub fn new(inner: Entries<'a>) -> Self { TaskIdIterator(inner) } } -impl Iterator for TaskIdIterator { +impl<'a> Iterator for TaskIdIterator<'a> { type Item = Result<StoreId>; fn next(&mut self) -> Option<Self::Item> { |