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) 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)

View File

@ -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'");
} }