another default instance

This commit is contained in:
Folkert 2021-12-05 15:14:16 +01:00
parent 21ff434fe3
commit 22c6e3f4a1

View File

@ -59,7 +59,7 @@ pub enum Attribute {
UnderlineEnd { underline_end: UnderlineEnd },
}
#[derive(Debug)]
#[derive(Debug, Default)]
pub struct Attributes {
pub all: Vec<Attribute>,
}
@ -117,9 +117,3 @@ impl Attributes {
Ok(())
}
}
impl Default for Attributes {
fn default() -> Self {
Attributes { all: Vec::new() }
}
}