mirror of
https://github.com/clap-rs/clap
synced 2025-03-04 23:37:32 +00:00
fix dead_code warning
This commit is contained in:
parent
548bf64e4a
commit
e29590527a
1 changed files with 0 additions and 2 deletions
|
@ -44,7 +44,6 @@ pub struct ColorizerOption {
|
|||
|
||||
#[doc(hidden)]
|
||||
pub struct Colorizer {
|
||||
use_stderr: bool,
|
||||
when: ColorWhen,
|
||||
}
|
||||
|
||||
|
@ -63,7 +62,6 @@ impl Colorizer {
|
|||
let is_a_tty = is_a_tty(option.use_stderr);
|
||||
let is_term_dumb = is_term_dumb();
|
||||
Colorizer {
|
||||
use_stderr: option.use_stderr,
|
||||
when: if is_a_tty && !is_term_dumb {
|
||||
option.when
|
||||
} else {
|
||||
|
|
Loading…
Add table
Reference in a new issue