xmpp-parsers: Fix most of the clippy warnings

Only the non-looping loop is kept for now, until we find a better
solution.
This commit is contained in:
Emmanuel Gil Peyrot 2024-07-03 11:06:33 +02:00
commit 69f480e709
8 changed files with 29 additions and 33 deletions

View file

@ -295,7 +295,7 @@ impl TryFrom<Element> for Method {
check_no_children!(elem, "regex");
Method::Regex(elem.text())
}
_ => return Err(Error::Other("Encountered invalid validation method.").into()),
_ => return Err(Error::Other("Encountered invalid validation method.")),
};
Ok(method)
}