aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKen Matsui <26405363+ken-matsui@users.noreply.github.com>2022-02-24 04:37:01 +0900
committerGitHub <noreply@github.com>2022-02-23 20:37:01 +0100
commitf1f5ac01afceef5adcfa52e5836ee421b78f8c7b (patch)
treea8fa92ce54bf7712c8cfe77c11eb9ef51cf6f073
parentfix(lint): replace unnecessary `assert_eq!` with `assert!` (#1079) (diff)
downloadsl0ppij-f1f5ac01afceef5adcfa52e5836ee421b78f8c7b.tar.gz
sl0ppij-f1f5ac01afceef5adcfa52e5836ee421b78f8c7b.tar.xz
sl0ppij-f1f5ac01afceef5adcfa52e5836ee421b78f8c7b.zip
fix(lint): simplify unnecessary `return` statements (#1080)
-rw-r--r--zellij-server/src/panes/floating_panes.rs10
1 files changed, 5 insertions, 5 deletions
diff --git a/zellij-server/src/panes/floating_panes.rs b/zellij-server/src/panes/floating_panes.rs
index f8a11a31..7cbb3820 100644
--- a/zellij-server/src/panes/floating_panes.rs
+++ b/zellij-server/src/panes/floating_panes.rs
@@ -281,7 +281,7 @@ impl FloatingPanes {
self.set_force_render();
return true;
}
- return false;
+ false
}
pub fn resize_active_pane_up(
&mut self,
@@ -305,7 +305,7 @@ impl FloatingPanes {
self.set_force_render();
return true;
}
- return false;
+ false
}
pub fn resize_active_pane_increase(
&mut self,
@@ -329,7 +329,7 @@ impl FloatingPanes {
self.set_force_render();
return true;
}
- return false;
+ false
}
pub fn resize_active_pane_decrease(
&mut self,
@@ -353,7 +353,7 @@ impl FloatingPanes {
self.set_force_render();
return true;
}
- return false;
+ false
}
fn set_pane_active_at(&mut self, pane_id: PaneId) {
if let Some(pane) = self.panes.get_mut(&pane_id) {
@@ -816,7 +816,7 @@ impl FloatingPanes {
return true;
}
};
- return false;
+ false
}
pub fn stop_moving_pane_with_mouse(&mut self, position: Position) {
if self.pane_being_moved_with_mouse.is_some() {