use if cfg
instead of #[cfg]
this pr is specifically for waffle because i love it <3
This commit is contained in:
parent
e6707df0de
commit
4845665f6a
@ -2677,10 +2677,7 @@ fn from_stderr(color: ColorConfig) -> Destination {
|
||||
/// On Windows, BRIGHT_BLUE is hard to read on black. Use cyan instead.
|
||||
///
|
||||
/// See #36178.
|
||||
#[cfg(windows)]
|
||||
const BRIGHT_BLUE: Color = Color::Cyan;
|
||||
#[cfg(not(windows))]
|
||||
const BRIGHT_BLUE: Color = Color::Blue;
|
||||
const BRIGHT_BLUE: Color = if cfg!(windows) { Color::Cyan } else { Color::Blue };
|
||||
|
||||
impl Style {
|
||||
fn color_spec(&self, lvl: Level) -> ColorSpec {
|
||||
|
Loading…
x
Reference in New Issue
Block a user