diff options
| author | Aram Drevekenin <aram@poor.dev> | 2024-10-25 13:12:24 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-10-25 13:12:24 +0200 |
| commit | 499fd64df83f1aa1563c3c7f99b4e19a6b833b4b (patch) | |
| tree | 2f9e74cf3e92e5e26df74709b8acbcae296c9a14 /default-plugins/tab-bar/src | |
| parent | docs(changelog): new themes (diff) | |
| download | sl0ppij-499fd64df83f1aa1563c3c7f99b4e19a6b833b4b.tar.gz sl0ppij-499fd64df83f1aa1563c3c7f99b4e19a6b833b4b.tar.xz sl0ppij-499fd64df83f1aa1563c3c7f99b4e19a6b833b4b.zip | |
style(fmt): remove warnings (#3701)
Diffstat (limited to 'default-plugins/tab-bar/src')
| -rw-r--r-- | default-plugins/tab-bar/src/line.rs | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/default-plugins/tab-bar/src/line.rs b/default-plugins/tab-bar/src/line.rs index 9384eaf1..d9f82698 100644 --- a/default-plugins/tab-bar/src/line.rs +++ b/default-plugins/tab-bar/src/line.rs @@ -1,14 +1,10 @@ use ansi_term::ANSIStrings; -use ansi_term::{ - Color::{Fixed, RGB}, - Style, -}; use unicode_width::UnicodeWidthStr; use crate::{LinePart, ARROW_SEPARATOR}; use zellij_tile::prelude::actions::Action; use zellij_tile::prelude::*; -use zellij_tile_utils::{palette_match, style}; +use zellij_tile_utils::style; fn get_current_title_len(current_title: &[LinePart]) -> usize { current_title.iter().map(|p| p.len).sum() @@ -251,7 +247,6 @@ pub fn tab_line( } else { tab_info.and_then(|tab_info| { swap_layout_status( - cols, &tab_info.active_swap_layout_name, tab_info.is_swap_layout_dirty, mode_info, @@ -307,7 +302,6 @@ pub fn tab_line( } fn swap_layout_status( - cols: usize, swap_layout_name: &Option<String>, is_swap_layout_dirty: bool, mode_info: &ModeInfo, |
