diff options
author | Dan Davison <dandavison7@gmail.com> | 2020-05-22 15:21:10 -0400 |
---|---|---|
committer | Dan Davison <dandavison7@gmail.com> | 2020-05-22 22:45:47 -0400 |
commit | ac64b1236bb85cb693b71a0d3552bff1d298da22 (patch) | |
tree | 9ffe16c979361a9580018019aca6d82e0a558e8f /src/tests | |
parent | 2245582fbef18d94b0bef2fec3389f710dadc8d9 (diff) |
Use new Style struct, wrapping ansi_term::Style
Diffstat (limited to 'src/tests')
-rw-r--r-- | src/tests/ansi_test_utils.rs | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/tests/ansi_test_utils.rs b/src/tests/ansi_test_utils.rs index 7e2ce6bd..b1fc10d8 100644 --- a/src/tests/ansi_test_utils.rs +++ b/src/tests/ansi_test_utils.rs @@ -20,7 +20,10 @@ pub mod ansi_test_utils { pub fn get_color_variants(string: &str, config: &Config) -> (String, String) { let string_without_any_color = strip_ansi_codes(string).to_string(); - let string_with_plus_color_only = config.plus_style.paint(&string_without_any_color); + let string_with_plus_color_only = config + .plus_style + .ansi_term_style + .paint(&string_without_any_color); ( string_without_any_color.to_string(), string_with_plus_color_only.to_string(), |