refactor(help): Remove unused hint

This commit is contained in:
Ed Page 2023-04-18 14:56:36 -05:00
parent 015f88b21a
commit 7cf08e63cd
2 changed files with 1 additions and 7 deletions

View file

@ -215,9 +215,6 @@ pub struct Styles {
pub warning: anstyle::Style,
/// Error heading
pub error: anstyle::Style,
/// Extra details
#[allow(dead_code)]
pub hint: anstyle::Style,
}
impl Styles {
@ -230,7 +227,6 @@ impl Styles {
good: anstyle::Style::new(),
warning: anstyle::Style::new(),
error: anstyle::Style::new(),
hint: anstyle::Style::new(),
}
}
@ -249,7 +245,6 @@ impl Styles {
error: anstyle::Style::new()
.fg_color(Some(anstyle::Color::Ansi(anstyle::AnsiColor::Red)))
.bold(),
hint: anstyle::Style::new().dimmed(),
}
}
#[cfg(not(feature = "color"))]

View file

@ -629,8 +629,7 @@ macro_rules! impl_settings {
macro_rules! debug {
($($arg:tt)*) => ({
use std::fmt::Write as _;
let styles = $crate::builder::Styles::styled();
let hint = &styles.hint;
let hint = anstyle::Style::new().dimmed();
let module_path = module_path!();
let body = format!($($arg)*);