diff --git a/src/entities/itemsiter.rs b/src/entities/itemsiter.rs index d8df189..9769762 100644 --- a/src/entities/itemsiter.rs +++ b/src/entities/itemsiter.rs @@ -90,9 +90,7 @@ impl<'a, T: Clone + for<'de> Deserialize<'de> + Serialize> ItemsIter { Some((item, this)) } else { if this.need_next_page() { - if this.fill_next_page().await.is_none() { - return None; - } + this.fill_next_page().await?; } let idx = this.cur_idx; this.cur_idx += 1;