clippy
All checks were successful
CI/CD Pipeline / test (push) Successful in 1m52s

This commit is contained in:
philipp 2024-02-15 15:31:40 +01:00
parent bc9d8a9d1d
commit 949fd7f486
2 changed files with 1 additions and 3 deletions

View File

@ -63,7 +63,7 @@ pub fn starts_with_letter(_classifier_name: &str, instance_name: &str) -> bool {
pub fn starts_with_uppercaseletter(_classifier_name: &str, instance_name: &str) -> bool { pub fn starts_with_uppercaseletter(_classifier_name: &str, instance_name: &str) -> bool {
instance_name.starts_with(|c: char| c.is_ascii_uppercase()) instance_name.starts_with(|c: char| c.is_ascii_uppercase())
&& instance_name.chars().nth(0) != Some('I') && !instance_name.starts_with('I')
&& (instance_name.chars().nth(1) == Some('.') || instance_name.chars().nth(1) == Some(')')) && (instance_name.chars().nth(1) == Some('.') || instance_name.chars().nth(1) == Some(')'))
} }

View File

@ -95,8 +95,6 @@ impl Abschnitt {
while let Some(child) = &c.peek() { while let Some(child) = &c.peek() {
if Ueberschrift::test_with_typ_and_content(child, "titel", "Beachte") { if Ueberschrift::test_with_typ_and_content(child, "titel", "Beachte") {
c.next(); c.next();
//<absatz typ="erltext" ct="beachte" halign="j">Zu Abs. 2: zum Bezugszeitraum vgl. § 33 Abs. 13</absatz>
let absatz = Absatz::parse( let absatz = Absatz::parse(
c.next() c.next()
.expect("After a 'Beachte' title, we need an Absatz"), .expect("After a 'Beachte' title, we need an Absatz"),