diff --git a/src/widget/async_tag_list.rs b/src/widget/async_tag_list.rs index bac4285..d6eebf6 100644 --- a/src/widget/async_tag_list.rs +++ b/src/widget/async_tag_list.rs @@ -169,10 +169,9 @@ impl TagList { } } - //readd next page - match self.tags.as_ref().unwrap().next_page().await { - None => (), - Some(_) => self.lines.push(next_page.unwrap()), + //readd next page item + if let Some(_) = self.tags.as_ref().unwrap().next_page().await { + self.lines.push(next_page.unwrap()); } } },