Rollup merge of #118993 - jyn514:cfg-color, r=WaffleLapkin,Nilstrieb
use `if cfg!` instead of `#[cfg]` this pr is specifically for waffle because i love it <3 fixes https://github.com/rust-lang/rust/pull/118756#discussion_r1421767649 r? `@WaffleLapkin`
This commit is contained in:
commit
30231d9afa
1 changed files with 1 additions and 4 deletions
|
@ -2677,10 +2677,7 @@ fn from_stderr(color: ColorConfig) -> Destination {
|
||||||
/// On Windows, BRIGHT_BLUE is hard to read on black. Use cyan instead.
|
/// On Windows, BRIGHT_BLUE is hard to read on black. Use cyan instead.
|
||||||
///
|
///
|
||||||
/// See #36178.
|
/// See #36178.
|
||||||
#[cfg(windows)]
|
const BRIGHT_BLUE: Color = if cfg!(windows) { Color::Cyan } else { Color::Blue };
|
||||||
const BRIGHT_BLUE: Color = Color::Cyan;
|
|
||||||
#[cfg(not(windows))]
|
|
||||||
const BRIGHT_BLUE: Color = Color::Blue;
|
|
||||||
|
|
||||||
impl Style {
|
impl Style {
|
||||||
fn color_spec(&self, lvl: Level) -> ColorSpec {
|
fn color_spec(&self, lvl: Level) -> ColorSpec {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue