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))
|
Some((item, this))
|
||||||
} else {
|
} else {
|
||||||
if this.need_next_page() {
|
if this.need_next_page() {
|
||||||
if this.fill_next_page().await.is_none() {
|
this.fill_next_page().await?;
|
||||||
return None;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
let idx = this.cur_idx;
|
let idx = this.cur_idx;
|
||||||
this.cur_idx += 1;
|
this.cur_idx += 1;
|
||||||
|
|
Loading…
Reference in New Issue