mirror of
https://github.com/clap-rs/clap
synced 2025-03-04 15:27:16 +00:00
refactor(help): Remove unused hint
This commit is contained in:
parent
015f88b21a
commit
7cf08e63cd
2 changed files with 1 additions and 7 deletions
|
@ -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"))]
|
||||
|
|
|
@ -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)*);
|
||||
|
|
Loading…
Add table
Reference in a new issue