diff --git a/src/paragraph/parser/abschnitt.rs b/src/paragraph/parser/abschnitt.rs index 6b881b9..32bc4a6 100644 --- a/src/paragraph/parser/abschnitt.rs +++ b/src/paragraph/parser/abschnitt.rs @@ -9,19 +9,13 @@ use crate::paragraph::parser::{ }; #[derive(Debug, PartialEq)] +#[derive(Default)] pub(crate) struct Abschnitt { metadata: HashMap, 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 {