fix: fix clippy warning

This commit is contained in:
Sagittarius-a 2021-07-23 23:04:58 +02:00
parent 081c55458d
commit aff9973616

View file

@ -439,7 +439,7 @@ impl Screen {
}
pub fn toggle_tab(&mut self) {
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;
self.go_to_tab(position + 1);
}