Skip to content

Commit

Permalink
refactor(help): Remove unused hint
Browse files Browse the repository at this point in the history
  • Loading branch information
epage committed Apr 18, 2023
1 parent 015f88b commit 7cf08e6
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 7 deletions.
5 changes: 0 additions & 5 deletions clap_builder/src/builder/styled_str.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand All @@ -230,7 +227,6 @@ impl Styles {
good: anstyle::Style::new(),
warning: anstyle::Style::new(),
error: anstyle::Style::new(),
hint: anstyle::Style::new(),
}
}

Expand All @@ -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"))]
Expand Down
3 changes: 1 addition & 2 deletions clap_builder/src/macros.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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)*);
Expand Down

0 comments on commit 7cf08e6

Please sign in to comment.