From e0644cd2ae11cdef5f5e5c5b7bb113df42dab0a2 Mon Sep 17 00:00:00 2001 From: Thomas Eppers Date: Tue, 7 Sep 2021 16:48:14 +0200 Subject: [PATCH] added comments --- src/tags.rs | 2 ++ src/widget/tag_list.rs | 2 ++ 2 files changed, 4 insertions(+) diff --git a/src/tags.rs b/src/tags.rs index 74cca60..78d33c5 100644 --- a/src/tags.rs +++ b/src/tags.rs @@ -87,6 +87,7 @@ impl Tags { Ok(name) } + /// returns tags of next page pub fn next_page(&self) -> Result { match &self.next_page { Some(url) => Self::with_url(url), @@ -94,6 +95,7 @@ impl Tags { } } + /// returns tags of previous page pub fn prev_page(&self) -> Result { match &self.prev_page { Some(url) => Self::with_url(url), diff --git a/src/widget/tag_list.rs b/src/widget/tag_list.rs index 07ca5bf..a74c829 100644 --- a/src/widget/tag_list.rs +++ b/src/widget/tag_list.rs @@ -54,6 +54,7 @@ impl TagList { } } + /// display next page if possible pub fn next_page(&mut self) { match &self.typ { Type::Status(_) => (), @@ -64,6 +65,7 @@ impl TagList { } } + /// display previous page if possible pub fn prev_page(&mut self) { match &self.typ { Type::Status(_) => (),