clippy + remove debug statement
All checks were successful
CI/CD Pipeline / test (push) Successful in 1m45s
All checks were successful
CI/CD Pipeline / test (push) Successful in 1m45s
This commit is contained in:
parent
eb8af55554
commit
83825c6d98
@ -323,7 +323,7 @@ impl fmt::Display for Section {
|
|||||||
format!("{}\n{}", self.symb, self.content)
|
format!("{}\n{}", self.symb, self.content)
|
||||||
};
|
};
|
||||||
if let Some(note) = &self.par_note {
|
if let Some(note) = &self.par_note {
|
||||||
to_write.push_str(&format!("\nBeachte: {}", note));
|
to_write.push_str(&format!("\nBeachte: {}\n", note));
|
||||||
}
|
}
|
||||||
|
|
||||||
f.write_str(&to_write)
|
f.write_str(&to_write)
|
||||||
|
@ -85,8 +85,7 @@ impl Abschnitt {
|
|||||||
c.next()
|
c.next()
|
||||||
.expect("After a 'Beachte' title, we need an Absatz"),
|
.expect("After a 'Beachte' title, we need an Absatz"),
|
||||||
);
|
);
|
||||||
println!("{}", absatz.typ);
|
if absatz.typ != *"erltext" {
|
||||||
if absatz.typ != "erltext".to_string() {
|
|
||||||
panic!("Expected erltext absatz after 'Beachte'");
|
panic!("Expected erltext absatz after 'Beachte'");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user