@@ -18,7 +18,7 @@ use std::sync::Arc;
1818
1919use anstream:: ColorChoice ;
2020use anstream:: stream:: { AsLockedWrite , RawStream } ;
21- use anstyle:: { Ansi256Color , AnsiColor , Effects } ;
21+ use anstyle:: { AnsiColor , Effects } ;
2222use derive_setters:: Setters ;
2323use rustc_data_structures:: fx:: { FxIndexMap , FxIndexSet } ;
2424use rustc_data_structures:: sync:: { DynSend , IntoDynSyncSend } ;
@@ -3519,21 +3519,21 @@ pub fn stderr_destination(color: ColorConfig) -> Destination {
35193519///
35203520/// See #36178.
35213521const BRIGHT_BLUE : anstyle:: Style = if cfg ! ( windows) {
3522- Ansi256Color :: from_ansi ( AnsiColor :: BrightCyan ) . on_default ( )
3522+ AnsiColor :: BrightCyan . on_default ( )
35233523} else {
3524- Ansi256Color :: from_ansi ( AnsiColor :: BrightBlue ) . on_default ( )
3524+ AnsiColor :: BrightBlue . on_default ( )
35253525} ;
35263526
35273527impl Style {
35283528 pub ( crate ) fn anstyle ( & self , lvl : Level ) -> anstyle:: Style {
35293529 match self {
3530- Style :: Addition => Ansi256Color :: from_ansi ( AnsiColor :: BrightGreen ) . on_default ( ) ,
3531- Style :: Removal => Ansi256Color :: from_ansi ( AnsiColor :: BrightRed ) . on_default ( ) ,
3530+ Style :: Addition => AnsiColor :: BrightGreen . on_default ( ) ,
3531+ Style :: Removal => AnsiColor :: BrightRed . on_default ( ) ,
35323532 Style :: LineAndColumn => anstyle:: Style :: new ( ) ,
35333533 Style :: LineNumber => BRIGHT_BLUE . effects ( Effects :: BOLD ) ,
35343534 Style :: Quotation => anstyle:: Style :: new ( ) ,
35353535 Style :: MainHeaderMsg => if cfg ! ( windows) {
3536- Ansi256Color :: from_ansi ( AnsiColor :: BrightWhite ) . on_default ( )
3536+ AnsiColor :: BrightWhite . on_default ( )
35373537 } else {
35383538 anstyle:: Style :: new ( )
35393539 }
0 commit comments