Clippy ok

This commit is contained in:
ChristianVisintin
2020-12-15 16:31:21 +01:00
parent b865fed7e9
commit ff4f35e5f5
3 changed files with 61 additions and 73 deletions

View File

@@ -273,9 +273,7 @@ impl AuthActivity {
///
/// Draw local explorer list
pub(super) fn draw_bookmarks_tab(&self) -> Option<List> {
if self.bookmarks.is_none() {
return None;
}
self.bookmarks.as_ref()?;
let hosts: Vec<ListItem> = self
.bookmarks
.as_ref()
@@ -318,9 +316,7 @@ impl AuthActivity {
///
/// Draw local explorer list
pub(super) fn draw_recents_tab(&self) -> Option<List> {
if self.bookmarks.is_none() {
return None;
}
self.bookmarks.as_ref()?;
let hosts: Vec<ListItem> = self
.bookmarks
.as_ref()