diff options
author | Bartek IwaĆczuk <biwanczuk@gmail.com> | 2022-05-09 10:56:13 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-05-09 10:56:13 +0200 |
commit | ab728e9ccfff2d1ac6362b22b579b00120a39f67 (patch) | |
tree | c7577ea32790d8814ade1431b927035da76df23a /runtime | |
parent | d0f5cd6a069e6a416e58b4ece456d134135b11d3 (diff) |
feat(test): change "failures:" headers in test report (#14490)
Diffstat (limited to 'runtime')
-rw-r--r-- | runtime/colors.rs | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/runtime/colors.rs b/runtime/colors.rs index f9d48fe53..7159db9f6 100644 --- a/runtime/colors.rs +++ b/runtime/colors.rs @@ -123,3 +123,12 @@ pub fn intense_blue<S: AsRef<str>>(s: S) -> impl fmt::Display { style_spec.set_fg(Some(Blue)).set_intense(true); style(s, style_spec) } + +pub fn white_bold_on_red<S: AsRef<str>>(s: S) -> impl fmt::Display { + let mut style_spec = ColorSpec::new(); + style_spec + .set_bold(true) + .set_bg(Some(Red)) + .set_fg(Some(White)); + style(s, style_spec) +} |