aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSagittarius-a <sagittarius-a@users.noreply.github.com>2021-07-23 23:04:58 +0200
committerSagittarius-a <sagittarius-a@users.noreply.github.com>2021-08-03 21:12:20 +0200
commitaff99736168dcfcfc70ad40cb23dbd207faa17c5 (patch)
treec55b6475bfb6a6573740d41b7ef6164121e30ec8
parentfix: rename action to ToggleTab (diff)
downloadsl0ppij-aff99736168dcfcfc70ad40cb23dbd207faa17c5.tar.gz
sl0ppij-aff99736168dcfcfc70ad40cb23dbd207faa17c5.tar.xz
sl0ppij-aff99736168dcfcfc70ad40cb23dbd207faa17c5.zip
fix: fix clippy warning
-rw-r--r--zellij-server/src/screen.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/zellij-server/src/screen.rs b/zellij-server/src/screen.rs
index 95b4b01f..ca5224df 100644
--- a/zellij-server/src/screen.rs
+++ b/zellij-server/src/screen.rs
@@ -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);
}