refactor: Addressed Cargo fmt complaints
This commit is contained in:
+8
-8
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user