clippy + remove debug statement
All checks were successful
CI/CD Pipeline / test (push) Successful in 1m45s

This commit is contained in:
philipp 2024-02-15 13:13:34 +01:00
parent eb8af55554
commit 83825c6d98
2 changed files with 2 additions and 3 deletions

View File

@ -323,7 +323,7 @@ impl fmt::Display for Section {
format!("{}\n{}", self.symb, self.content)
};
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)

View File

@ -85,8 +85,7 @@ impl Abschnitt {
c.next()
.expect("After a 'Beachte' title, we need an Absatz"),
);
println!("{}", absatz.typ);
if absatz.typ != "erltext".to_string() {
if absatz.typ != *"erltext" {
panic!("Expected erltext absatz after 'Beachte'");
}