From abc414524e2a2927e684bf91705ab9800a712773 Mon Sep 17 00:00:00 2001 From: John Letey <30328854+johnletey@users.noreply.github.com> Date: Sun, 15 Sep 2019 12:04:08 +0200 Subject: Update hostname module so that tests pass --- src/modules/hostname.rs | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/modules/hostname.rs b/src/modules/hostname.rs index d71f733fa..4fc9a714d 100644 --- a/src/modules/hostname.rs +++ b/src/modules/hostname.rs @@ -30,11 +30,8 @@ pub fn module<'a>(context: &'a Context) -> Option> { } }; - let prefix = module.config_value_str("prefix").unwrap_or("").to_owned(); - let suffix = module.config_value_str("suffix").unwrap_or("").to_owned(); - module.set_style(module_style); - module.new_segment("hostname", &format!("{}{}{}", prefix, host, suffix)); + module.new_segment("hostname", &format!("{}", host)); module.get_prefix().set_value("on "); Some(module) -- cgit v1.2.3