Skip to content

Commit

Permalink
chore: fix linting issue
Browse files Browse the repository at this point in the history
  • Loading branch information
dj95 committed Nov 30, 2024
1 parent 034ef98 commit b57833b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/widgets/tabs.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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)]
Expand Down

0 comments on commit b57833b

Please sign in to comment.