diff options
| author | a-kenji <aks.kenji@protonmail.com> | 2021-06-29 23:02:51 +0200 |
|---|---|---|
| committer | a-kenji <aks.kenji@protonmail.com> | 2021-06-29 23:02:51 +0200 |
| commit | b3b9175081d6e7df02872bff8d530623b8c046f9 (patch) | |
| tree | e4de583f6a1eaaf8d00a88727a3c0e1b55993c9e /default-plugins/tab-bar | |
| parent | Add e2e tests (#582) (diff) | |
| download | sl0ppij-b3b9175081d6e7df02872bff8d530623b8c046f9.tar.gz sl0ppij-b3b9175081d6e7df02872bff8d530623b8c046f9.tar.xz sl0ppij-b3b9175081d6e7df02872bff8d530623b8c046f9.zip | |
chore(clippy): needless_borrow
Diffstat (limited to 'default-plugins/tab-bar')
| -rw-r--r-- | default-plugins/tab-bar/src/line.rs | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/default-plugins/tab-bar/src/line.rs b/default-plugins/tab-bar/src/line.rs index fce8982d..cad5b720 100644 --- a/default-plugins/tab-bar/src/line.rs +++ b/default-plugins/tab-bar/src/line.rs @@ -21,7 +21,7 @@ fn populate_tabs_in_tab_line( if tabs_before_active.is_empty() && tabs_after_active.is_empty() { break; } - let current_title_len = get_current_title_len(&tabs_to_render); + let current_title_len = get_current_title_len(tabs_to_render); if current_title_len >= cols { break; } @@ -117,7 +117,7 @@ fn add_previous_tabs_msg( palette: Palette, separator: &str, ) { - while get_current_title_len(&tabs_to_render) + while get_current_title_len(tabs_to_render) + left_more_message(tabs_before_active.len(), palette, separator).len >= cols { @@ -134,7 +134,7 @@ fn add_next_tabs_msg( palette: Palette, separator: &str, ) { - while get_current_title_len(&title_bar) + while get_current_title_len(title_bar) + right_more_message(tabs_after_active.len(), palette, separator).len >= cols { @@ -160,7 +160,7 @@ pub fn tab_separator(capabilities: PluginCapabilities) -> &'static str { if !capabilities.arrow_fonts { ARROW_SEPARATOR } else { - &"" + "" } } |
