File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -7,7 +7,7 @@ pub mod style;
77
88use self :: style:: { Style , StyleClass , Stylesheet } ;
99
10- #[ cfg( feature = "ansi_term " ) ]
10+ #[ cfg( feature = "color " ) ]
1111use crate :: stylesheets:: color:: AnsiTermStylesheet ;
1212use crate :: { display_list:: * , stylesheets:: no_color:: NoColorStylesheet } ;
1313
@@ -26,7 +26,7 @@ fn is_annotation_empty(annotation: &Annotation<'_>) -> bool {
2626 . all ( |fragment| fragment. content . is_empty ( ) )
2727}
2828
29- #[ cfg( feature = "ansi_term " ) ]
29+ #[ cfg( feature = "color " ) ]
3030#[ inline]
3131pub fn get_term_style ( color : bool ) -> Box < dyn Stylesheet > {
3232 if color {
@@ -36,7 +36,7 @@ pub fn get_term_style(color: bool) -> Box<dyn Stylesheet> {
3636 }
3737}
3838
39- #[ cfg( not( feature = "ansi_term " ) ) ]
39+ #[ cfg( not( feature = "color " ) ) ]
4040#[ inline]
4141pub fn get_term_style ( _color : bool ) -> Box < dyn Stylesheet > {
4242 Box :: new ( NoColorStylesheet )
Original file line number Diff line number Diff line change 66//! By default the `no_color` is available. If the crate gets compiled
77//! with `ansi_term`, the `color` stylesheet is added.
88
9- #[ cfg( feature = "ansi_term " ) ]
9+ #[ cfg( feature = "color " ) ]
1010pub mod color;
1111pub mod no_color;
You can’t perform that action at this time.
0 commit comments