derive default instead of doing it manually
All checks were successful
CI/CD Pipeline / test (push) Successful in 1m52s

This commit is contained in:
philipp 2024-02-15 18:45:01 +01:00
parent 06651dc878
commit 90d9982add

View File

@ -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 {