@@ -17,7 +17,7 @@ use std::path::Path;
1717use std:: sync:: Arc ;
1818
1919use anstream:: { AutoStream , ColorChoice } ;
20- use anstyle:: { Ansi256Color , AnsiColor , Effects } ;
20+ use anstyle:: { AnsiColor , Effects } ;
2121use derive_setters:: Setters ;
2222use rustc_data_structures:: fx:: { FxIndexMap , FxIndexSet } ;
2323use rustc_data_structures:: sync:: { DynSend , IntoDynSyncSend } ;
@@ -3492,21 +3492,21 @@ pub fn stderr_destination(color: ColorConfig) -> Destination {
34923492///
34933493/// See #36178.
34943494const BRIGHT_BLUE : anstyle:: Style = if cfg ! ( windows) {
3495- Ansi256Color :: from_ansi ( AnsiColor :: BrightCyan ) . on_default ( )
3495+ AnsiColor :: BrightCyan . on_default ( )
34963496} else {
3497- Ansi256Color :: from_ansi ( AnsiColor :: BrightBlue ) . on_default ( )
3497+ AnsiColor :: BrightBlue . on_default ( )
34983498} ;
34993499
35003500impl Style {
35013501 pub ( crate ) fn anstyle ( & self , lvl : Level ) -> anstyle:: Style {
35023502 match self {
3503- Style :: Addition => Ansi256Color :: from_ansi ( AnsiColor :: BrightGreen ) . on_default ( ) ,
3504- Style :: Removal => Ansi256Color :: from_ansi ( AnsiColor :: BrightRed ) . on_default ( ) ,
3503+ Style :: Addition => AnsiColor :: BrightGreen . on_default ( ) ,
3504+ Style :: Removal => AnsiColor :: BrightRed . on_default ( ) ,
35053505 Style :: LineAndColumn => anstyle:: Style :: new ( ) ,
35063506 Style :: LineNumber => BRIGHT_BLUE . effects ( Effects :: BOLD ) ,
35073507 Style :: Quotation => anstyle:: Style :: new ( ) ,
35083508 Style :: MainHeaderMsg => if cfg ! ( windows) {
3509- Ansi256Color :: from_ansi ( AnsiColor :: BrightWhite ) . on_default ( )
3509+ AnsiColor :: BrightWhite . on_default ( )
35103510 } else {
35113511 anstyle:: Style :: new ( )
35123512 }
0 commit comments