clean with pedantic clippy
All checks were successful
CI/CD Pipeline / test (push) Successful in 1m51s

This commit is contained in:
philipp 2024-02-21 14:23:23 +01:00
parent cc6bedfdf1
commit ad8d5d828e
2 changed files with 2 additions and 2 deletions

View File

@ -105,7 +105,7 @@ impl Parser {
Regex::new("<absatz typ=\"[^\"]*\" ct=\"[^\"]*\" halign=\"[^\"]*\">").unwrap();
// Find all matches for <ueberschrift> tags and iterate over them in reverse to avoid messing up the indices
for cap in ueberschrift_regex.captures_iter(&xml) {
for cap in ueberschrift_regex.captures_iter(xml) {
let ueberschrift_content = &cap[1];
// Check if there's an <absatz> following the <ueberschrift>

View File

@ -44,7 +44,7 @@ impl<'a> From<&'a Node<'a, 'a>> for Expect<'a> {
impl<'a> Expect<'a> {
fn tag(&self, value: &str) {
assert!(
!(self.node.tag_name().name() != value),
self.node.tag_name().name() == value,
"Expected tag '{value}', got {} (tag: {}, content: {:?})",
self.node.tag_name().name(),
self.node.tag_name().name(),