Refactor libimagtimetrack to fit new store iterator interface
This commit is contained in:
parent
08114bbf36
commit
72c83ae3f7
1 changed files with 9 additions and 6 deletions
|
@ -37,7 +37,9 @@ impl<'a> Iterator for TimeTrackingsGetIterator<'a> {
|
|||
|
||||
fn next(&mut self) -> Option<Self::Item> {
|
||||
while let Some(next) = self.0.next() {
|
||||
if next.is_in_collection(&[CRATE_NAME]) {
|
||||
match next {
|
||||
Err(e) => return Some(Err(e)),
|
||||
Ok(next) => if next.is_in_collection(&[CRATE_NAME]) {
|
||||
return match self.1.get(next) {
|
||||
Ok(Some(fle)) => Some(Ok(fle)),
|
||||
Ok(None) => continue,
|
||||
|
@ -45,6 +47,7 @@ impl<'a> Iterator for TimeTrackingsGetIterator<'a> {
|
|||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
None
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue