diff options
| author | Daniel Jankowski <daniel.jankowski@rub.de> | 2023-12-17 15:56:40 +0100 |
|---|---|---|
| committer | Daniel Jankowski <daniel.jankowski@rub.de> | 2023-12-17 15:56:40 +0100 |
| commit | 19b8d9d63c55ade8b1a2fc70732756ae161909b4 (patch) | |
| tree | 3d60c361b89a46ca2f8959217e1298d7a288aebb /src/widgets/tabs.rs | |
| parent | feat: add bench for render_bar (diff) | |
| download | sl0pstatus-19b8d9d63c55ade8b1a2fc70732756ae161909b4.tar.gz sl0pstatus-19b8d9d63c55ade8b1a2fc70732756ae161909b4.tar.xz sl0pstatus-19b8d9d63c55ade8b1a2fc70732756ae161909b4.zip | |
chore: ref config instead of copying
Diffstat (limited to '')
| -rw-r--r-- | src/widgets/tabs.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/widgets/tabs.rs b/src/widgets/tabs.rs index cefd124..d8a292d 100644 --- a/src/widgets/tabs.rs +++ b/src/widgets/tabs.rs @@ -16,7 +16,7 @@ pub struct TabsWidget { } impl TabsWidget { - pub fn new(config: BTreeMap<String, String>) -> Self { + pub fn new(config: &BTreeMap<String, String>) -> Self { let mut normal_tab_format: Vec<FormattedPart> = Vec::new(); if let Some(form) = config.get("tab_normal") { normal_tab_format = FormattedPart::multiple_from_format_string(form.to_owned()); |
