(text: T)
| 73 | |
| 74 | #[cfg(feature = "anstyle")] |
| 75 | pub fn bold_red<T: std::fmt::Display>(text: T) -> String { |
| 76 | use anstyle::{AnsiColor, Style}; |
| 77 | let style = Style::new().bold().fg_color(Some(anstyle::Color::Ansi(AnsiColor::Red))); |
| 78 | format!("{style}{text}{style:#}") |
| 79 | } |
| 80 | |
| 81 | #[cfg(feature = "owo-colors")] |
| 82 | #[cfg(not(feature = "anstyle"))] |