Fix clippy: Replace manual return with ? operator
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
This commit is contained in:
parent
e76fff06d9
commit
19e4878460
|
@ -90,9 +90,7 @@ impl<'a, T: Clone + for<'de> Deserialize<'de> + Serialize> ItemsIter<T> {
|
|||
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;
|
||||
|
|
Loading…
Reference in New Issue