From ab728e9ccfff2d1ac6362b22b579b00120a39f67 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bartek=20Iwa=C5=84czuk?= Date: Mon, 9 May 2022 10:56:13 +0200 Subject: feat(test): change "failures:" headers in test report (#14490) --- runtime/colors.rs | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'runtime/colors.rs') 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: S) -> impl fmt::Display { style_spec.set_fg(Some(Blue)).set_intense(true); style(s, style_spec) } + +pub fn white_bold_on_red>(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) +} -- cgit v1.2.3