From b228e4615e1457d55a60c2d97a9612f48c8ac5dc Mon Sep 17 00:00:00 2001 From: o2sh Date: Sun, 27 Mar 2022 00:14:26 +0100 Subject: [PATCH] rename function --- src/info/mod.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/info/mod.rs b/src/info/mod.rs index a2d0e7368..6536cc08a 100644 --- a/src/info/mod.rs +++ b/src/info/mod.rs @@ -235,10 +235,10 @@ impl Info { info: &str, f: &mut std::fmt::Formatter, ) -> std::fmt::Result { - writeln!(f, "{} {}", &self.get_styled_subtitle_label(subtitle), info) + writeln!(f, "{} {}", &self.style_subtitle(subtitle), info) } - fn get_styled_subtitle_label(&self, subtitle: &str) -> String { + fn style_subtitle(&self, subtitle: &str) -> String { let subtitle_style = self.style(self.text_colors.subtitle); let colon_style = self.style(self.text_colors.colon); format!(