refactor: Addressed Cargo fmt complaints

This commit is contained in:
2025-02-27 20:42:32 -07:00
parent fd6fcfc98f
commit 104bcd7bb2
8 changed files with 100 additions and 59 deletions
+8 -8
View File
@@ -300,10 +300,10 @@ impl TabState {
if self.tabs.is_empty() {
return &None;
}
&self.tabs[self.index].config
}
pub fn select_tab_by_title(&mut self, name: &str) -> bool {
if !self.tabs.is_empty() {
let mut found = false;
@@ -313,13 +313,13 @@ impl TabState {
found = true;
}
});
return found;
}
false
}
pub fn select_tab_by_config(&mut self, config: &ServarrConfig) -> bool {
if !self.tabs.is_empty() {
let mut found = false;
@@ -329,13 +329,13 @@ impl TabState {
found = true;
}
});
return found;
}
false
}
pub fn get_active_tab_help(&self) -> &str {
&self.tabs[self.index].help
}