fix: fix clippy warning
This commit is contained in:
parent
081c55458d
commit
aff9973616
1 changed files with 1 additions and 1 deletions
|
|
@ -439,7 +439,7 @@ impl Screen {
|
||||||
}
|
}
|
||||||
pub fn toggle_tab(&mut self) {
|
pub fn toggle_tab(&mut self) {
|
||||||
let active_tab_index = self.active_tab_index.unwrap();
|
let active_tab_index = self.active_tab_index.unwrap();
|
||||||
if let Some(_) = self.previous_active_tab_index {
|
if self.previous_active_tab_index.is_some() {
|
||||||
let position = self.get_previous_tab().unwrap().position;
|
let position = self.get_previous_tab().unwrap().position;
|
||||||
self.go_to_tab(position + 1);
|
self.go_to_tab(position + 1);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue