File tree 2 files changed +4
-4
lines changed
2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -7,7 +7,7 @@ pub mod style;
7
7
8
8
use self :: style:: { Style , StyleClass , Stylesheet } ;
9
9
10
- #[ cfg( feature = "ansi_term " ) ]
10
+ #[ cfg( feature = "color " ) ]
11
11
use crate :: stylesheets:: color:: AnsiTermStylesheet ;
12
12
use crate :: { display_list:: * , stylesheets:: no_color:: NoColorStylesheet } ;
13
13
@@ -26,7 +26,7 @@ fn is_annotation_empty(annotation: &Annotation<'_>) -> bool {
26
26
. all ( |fragment| fragment. content . is_empty ( ) )
27
27
}
28
28
29
- #[ cfg( feature = "ansi_term " ) ]
29
+ #[ cfg( feature = "color " ) ]
30
30
#[ inline]
31
31
pub fn get_term_style ( color : bool ) -> Box < dyn Stylesheet > {
32
32
if color {
@@ -36,7 +36,7 @@ pub fn get_term_style(color: bool) -> Box<dyn Stylesheet> {
36
36
}
37
37
}
38
38
39
- #[ cfg( not( feature = "ansi_term " ) ) ]
39
+ #[ cfg( not( feature = "color " ) ) ]
40
40
#[ inline]
41
41
pub fn get_term_style ( _color : bool ) -> Box < dyn Stylesheet > {
42
42
Box :: new ( NoColorStylesheet )
Original file line number Diff line number Diff line change 6
6
//! By default the `no_color` is available. If the crate gets compiled
7
7
//! with `ansi_term`, the `color` stylesheet is added.
8
8
9
- #[ cfg( feature = "ansi_term " ) ]
9
+ #[ cfg( feature = "color " ) ]
10
10
pub mod color;
11
11
pub mod no_color;
You can’t perform that action at this time.
0 commit comments