aboutsummaryrefslogtreecommitdiffstats
path: root/src/config.rs
diff options
context:
space:
mode:
authorDaniel Jankowski <daniel.jankowski@rub.de>2023-12-17 15:56:40 +0100
committerDaniel Jankowski <daniel.jankowski@rub.de>2023-12-17 15:56:40 +0100
commit19b8d9d63c55ade8b1a2fc70732756ae161909b4 (patch)
tree3d60c361b89a46ca2f8959217e1298d7a288aebb /src/config.rs
parentfeat: add bench for render_bar (diff)
downloadsl0pstatus-19b8d9d63c55ade8b1a2fc70732756ae161909b4.tar.gz
sl0pstatus-19b8d9d63c55ade8b1a2fc70732756ae161909b4.tar.xz
sl0pstatus-19b8d9d63c55ade8b1a2fc70732756ae161909b4.zip
chore: ref config instead of copying
Diffstat (limited to 'src/config.rs')
-rw-r--r--src/config.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/config.rs b/src/config.rs
index 8591788..dab66f1 100644
--- a/src/config.rs
+++ b/src/config.rs
@@ -33,7 +33,7 @@ pub struct ModuleConfig {
}
impl ModuleConfig {
- pub fn new(config: BTreeMap<String, String>) -> Self {
+ pub fn new(config: &BTreeMap<String, String>) -> Self {
let format_space_config = match config.get("format_space") {
Some(space_config) => space_config,
None => "",