diff options
author | Dan Davison <dandavison7@gmail.com> | 2020-05-26 09:32:42 -0400 |
---|---|---|
committer | Dan Davison <dandavison7@gmail.com> | 2020-05-26 10:43:27 -0400 |
commit | e6850387b3c84b2f2c24f8e885b627992edd370d (patch) | |
tree | 9651fab1bfd8ff63c54bfc459700558b1d7e0cd9 /src/config.rs | |
parent | 45127e6e3f6a598b2fa5f40e2644bf0abd698b2b (diff) |
Rename function
Diffstat (limited to 'src/config.rs')
-rw-r--r-- | src/config.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/config.rs b/src/config.rs index e815de16..051001bf 100644 --- a/src/config.rs +++ b/src/config.rs @@ -309,7 +309,7 @@ pub fn parse_style( true_color, ); let decoration_style = match decoration_style_string { - Some(s) if s != "" => parse_decoration_style_string(s, true_color), + Some(s) if s != "" => parse_decoration_style(s, true_color), _ => None, }; Style { @@ -376,7 +376,7 @@ fn parse_ansi_term_style( (style, is_syntax_highlighted) } -fn parse_decoration_style_string(style_string: &str, true_color: bool) -> Option<DecorationStyle> { +fn parse_decoration_style(style_string: &str, true_color: bool) -> Option<DecorationStyle> { let style_string = style_string.to_lowercase(); let (style_string, special_attribute) = extract_special_attribute(&style_string); let special_attribute = special_attribute.unwrap_or_else(|| { @@ -397,7 +397,7 @@ fn parse_decoration_style_string(style_string: &str, true_color: bool) -> Option "underline" => Some(DecorationStyle::Underline(style)), "omit" => Some(DecorationStyle::Omit), "plain" => None, - _ => unreachable("Unreachable code path reached in parse_decoration_style_string."), + _ => unreachable("Unreachable code path reached in parse_decoration_style."), } } |