aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorDaniel Jankowski <daniel.jankowski@rub.de>2024-11-30 13:44:21 +0100
committerDaniel Jankowski <daniel.jankowski@rub.de>2024-11-30 13:44:21 +0100
commitb57833bcef48e89d847e720ab02c4ca4ad6d27d7 (patch)
tree91cd263177b68f317b8da787dd2f9ef262288d97 /src
parentchore(deps): update rust-toolchain and setup actions (diff)
downloadsl0pstatus-b57833bcef48e89d847e720ab02c4ca4ad6d27d7.tar.gz
sl0pstatus-b57833bcef48e89d847e720ab02c4ca4ad6d27d7.tar.xz
sl0pstatus-b57833bcef48e89d847e720ab02c4ca4ad6d27d7.zip
chore: fix linting issue
Diffstat (limited to 'src')
-rw-r--r--src/widgets/tabs.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/widgets/tabs.rs b/src/widgets/tabs.rs
index 187075a..75275c9 100644
--- a/src/widgets/tabs.rs
+++ b/src/widgets/tabs.rs
@@ -371,11 +371,11 @@ pub fn get_tab_window(
let first_index = active_index.saturating_sub(1);
let last_index = cmp::min(first_index + max_count, tabs.len());
- return (
+ (
first_index,
tabs.len().saturating_sub(last_index),
tabs.as_slice()[first_index..last_index].to_vec(),
- );
+ )
}
#[cfg(test)]