clean with pedantic clippy
All checks were successful
CI/CD Pipeline / test (push) Successful in 1m51s
All checks were successful
CI/CD Pipeline / test (push) Successful in 1m51s
This commit is contained in:
parent
cc6bedfdf1
commit
ad8d5d828e
@ -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>
|
||||
|
@ -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(),
|
||||
|
Loading…
Reference in New Issue
Block a user