From d07bc726b9a0df00d658ce723fc7102c1ff7a56c Mon Sep 17 00:00:00 2001 From: philipp Date: Fri, 16 Feb 2024 10:31:10 +0100 Subject: [PATCH] clippy --- src/paragraph/parser/abschnitt.rs | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/src/paragraph/parser/abschnitt.rs b/src/paragraph/parser/abschnitt.rs index 2a63cd5..97e09e3 100644 --- a/src/paragraph/parser/abschnitt.rs +++ b/src/paragraph/parser/abschnitt.rs @@ -102,7 +102,7 @@ impl Abschnitt { } } value = value.trim().into(); - if value == "" { + if value.is_empty() { panic!("Expected at least on erltext-absatz after title meta-data"); } @@ -190,14 +190,12 @@ impl Abschnitt { // If there's a "table" after an "absatz", the "table" should be part of the "absatz" let table = Table::parse_full(c); content.extend(table.iter().cloned()); - } else if Absatz::test_with_typ(child, "satz") { - // After a 'absatz' there can be a '