From b57833bcef48e89d847e720ab02c4ca4ad6d27d7 Mon Sep 17 00:00:00 2001 From: Daniel Jankowski Date: Sat, 30 Nov 2024 13:44:21 +0100 Subject: [PATCH] chore: fix linting issue --- src/widgets/tabs.rs | 4 ++-- 1 file 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)]