Skip to content

Commit

Permalink
rename function
Browse files Browse the repository at this point in the history
  • Loading branch information
o2sh committed Mar 26, 2022
1 parent 452ad6e commit b228e46
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/info/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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!(
Expand Down

0 comments on commit b228e46

Please sign in to comment.