Fix clippy: Replace manual return with ? operator

Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
This commit is contained in:
Matthias Beyer 2022-12-27 15:51:30 +01:00
parent e76fff06d9
commit 19e4878460
No known key found for this signature in database
1 changed files with 1 additions and 3 deletions

View File

@ -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;