From ece78cfb8a9f641b67eaa350bb5344c8bec301bd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bartek=20Iwa=C5=84czuk?= Date: Tue, 12 Dec 2023 15:45:45 +0100 Subject: refactor: nicer warning display (#21547) --- runtime/colors.rs | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'runtime') diff --git a/runtime/colors.rs b/runtime/colors.rs index 8d915b571..8790eccd1 100644 --- a/runtime/colors.rs +++ b/runtime/colors.rs @@ -108,6 +108,13 @@ pub fn cyan>(s: S) -> impl fmt::Display { style_spec.set_fg(Some(Cyan)); style(s, style_spec) } + +pub fn cyan_with_underline>(s: S) -> impl fmt::Display { + let mut style_spec = ColorSpec::new(); + style_spec.set_fg(Some(Cyan)).set_underline(true); + style(s, style_spec) +} + pub fn cyan_bold>(s: S) -> impl fmt::Display { let mut style_spec = ColorSpec::new(); style_spec.set_fg(Some(Cyan)).set_bold(true); -- cgit v1.2.3