aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authora-kenji <aks.kenji@protonmail.com>2021-02-18 21:22:44 +0100
committera-kenji <aks.kenji@protonmail.com>2021-02-18 21:53:09 +0100
commitfc1a956040b2fcebe2e9192891a28b515b9bcff9 (patch)
treeef2c6bbd139afa9f29160c298806eae964085f57 /src
parentallow(clippy): single_match for signal handler (diff)
downloadsl0ppij-fc1a956040b2fcebe2e9192891a28b515b9bcff9.tar.gz
sl0ppij-fc1a956040b2fcebe2e9192891a28b515b9bcff9.tar.xz
sl0ppij-fc1a956040b2fcebe2e9192891a28b515b9bcff9.zip
fix(clippy): unneeded `return` statement
Diffstat (limited to 'src')
-rw-r--r--src/client/tab.rs16
1 files changed, 8 insertions, 8 deletions
diff --git a/src/client/tab.rs b/src/client/tab.rs
index 7c721324..a203b2ba 100644
--- a/src/client/tab.rs
+++ b/src/client/tab.rs
@@ -1433,7 +1433,7 @@ impl Tab {
p.columns() > increase_by && p.columns() - increase_by >= p.min_width()
});
} else {
- return false;
+ false
}
}
fn can_increase_pane_and_surroundings_left(
@@ -1455,7 +1455,7 @@ impl Tab {
p.columns() > increase_by && p.columns() - increase_by >= p.min_width()
});
} else {
- return false;
+ false
}
}
fn can_increase_pane_and_surroundings_down(
@@ -1477,7 +1477,7 @@ impl Tab {
p.rows() > increase_by && p.rows() - increase_by >= p.min_height()
});
} else {
- return false;
+ false
}
}
fn can_increase_pane_and_surroundings_up(&self, pane_id: &PaneId, increase_by: usize) -> bool {
@@ -1495,7 +1495,7 @@ impl Tab {
p.rows() > increase_by && p.rows() - increase_by >= p.min_height()
});
} else {
- return false;
+ false
}
}
fn can_reduce_pane_and_surroundings_right(&self, pane_id: &PaneId, reduce_by: usize) -> bool {
@@ -1514,7 +1514,7 @@ impl Tab {
.unwrap_or(true) // no max width, increase to your heart's content
});
} else {
- return false;
+ false
}
}
fn can_reduce_pane_and_surroundings_left(&self, pane_id: &PaneId, reduce_by: usize) -> bool {
@@ -1533,7 +1533,7 @@ impl Tab {
.unwrap_or(true) // no max width, increase to your heart's content
});
} else {
- return false;
+ false
}
}
fn can_reduce_pane_and_surroundings_down(&self, pane_id: &PaneId, reduce_by: usize) -> bool {
@@ -1552,7 +1552,7 @@ impl Tab {
.unwrap_or(true) // no max height, increase to your heart's content
});
} else {
- return false;
+ false
}
}
fn can_reduce_pane_and_surroundings_up(&self, pane_id: &PaneId, reduce_by: usize) -> bool {
@@ -1571,7 +1571,7 @@ impl Tab {
.unwrap_or(true) // no max height, increase to your heart's content
});
} else {
- return false;
+ false
}
}
pub fn resize_right(&mut self) {