derive default instead of doing it manually
All checks were successful
CI/CD Pipeline / test (push) Successful in 1m52s
All checks were successful
CI/CD Pipeline / test (push) Successful in 1m52s
This commit is contained in:
parent
06651dc878
commit
90d9982add
@ -9,19 +9,13 @@ use crate::paragraph::parser::{
|
||||
};
|
||||
|
||||
#[derive(Debug, PartialEq)]
|
||||
#[derive(Default)]
|
||||
pub(crate) struct Abschnitt {
|
||||
metadata: HashMap<String, String>,
|
||||
pub(crate) cont: bool,
|
||||
}
|
||||
|
||||
impl Default for Abschnitt {
|
||||
fn default() -> Self {
|
||||
Self {
|
||||
metadata: HashMap::new(),
|
||||
cont: false,
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
impl Abschnitt {
|
||||
pub(crate) fn parse(n: Node, builder: &mut LawBuilder) -> Abschnitt {
|
||||
|
Loading…
Reference in New Issue
Block a user