diff options
author | John Letey <30328854+johnletey@users.noreply.github.com> | 2019-09-15 12:05:48 +0200 |
---|---|---|
committer | John Letey <30328854+johnletey@users.noreply.github.com> | 2019-09-15 12:05:48 +0200 |
commit | c7f6d34d5183f0fc1d91595654e6a7250f4642dd (patch) | |
tree | e4ec4343af477719369b749745488d39c02f3746 | |
parent | abc414524e2a2927e684bf91705ab9800a712773 (diff) |
Remove unnecessary string formatting
-rw-r--r-- | src/modules/hostname.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/modules/hostname.rs b/src/modules/hostname.rs index 4fc9a714d..62927b8df 100644 --- a/src/modules/hostname.rs +++ b/src/modules/hostname.rs @@ -31,7 +31,7 @@ pub fn module<'a>(context: &'a Context) -> Option<Module<'a>> { }; module.set_style(module_style); - module.new_segment("hostname", &format!("{}", host)); + module.new_segment("hostname", &host); module.get_prefix().set_value("on "); Some(module) |