Fix the def_str_attr!
macro (#319)
This commit is contained in:
parent
9fdc6318b2
commit
bf51821238
@ -35,10 +35,13 @@ macro_rules! def_str_color {
|
|||||||
}
|
}
|
||||||
|
|
||||||
macro_rules! def_str_attr {
|
macro_rules! def_str_attr {
|
||||||
($name:ident => $color:path) => {
|
($name:ident => $attr:path) => {
|
||||||
fn $name(self) -> StyledContent<&'static str> {
|
fn $name(self) -> StyledContent<&'static str> {
|
||||||
StyledContent::new(
|
StyledContent::new(
|
||||||
Default::default(),
|
ContentStyle {
|
||||||
|
attributes: vec![ $attr ],
|
||||||
|
..Default::default()
|
||||||
|
},
|
||||||
self
|
self
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user