diff options
author | Matan Kushner <hello@matchai.me> | 2019-07-14 11:15:47 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-07-14 11:15:47 -0400 |
commit | 77ba97df191c5cebb3b0a9126e7e97fff28b0628 (patch) | |
tree | b970f19bffd5f13c3a764b3cbd32581305bf777b /src/modules/battery.rs | |
parent | 79bfc7cf49a051544facb1ae27d734d1bb50f9fc (diff) |
chore: Refactor getting string values from config (#94)
Diffstat (limited to 'src/modules/battery.rs')
-rw-r--r-- | src/modules/battery.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/modules/battery.rs b/src/modules/battery.rs index 048abe05f..586153266 100644 --- a/src/modules/battery.rs +++ b/src/modules/battery.rs @@ -43,7 +43,7 @@ pub fn module<'a>(context: &'a Context) -> Option<Module<'a>> { // Round the percentage to a whole number percent_string.push(percentage.round().to_string()); percent_string.push("%".to_string()); - module.new_segment("percentage", percent_string.join("")); + module.new_segment("percentage", percent_string.join("").as_ref()); Some(module) } |