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:
parent
b51d6cec3a
commit
69f480e709
8 changed files with 29 additions and 33 deletions
|
|
@ -291,7 +291,7 @@ impl TryFrom<Element> for StanzaError {
|
|||
if condition == DefinedCondition::Gone || condition == DefinedCondition::Redirect {
|
||||
stanza_error.alternate_address = child.nodes().find_map(|node| {
|
||||
let Node::Text(text) = node else { return None };
|
||||
return Some(text.to_string());
|
||||
Some(text.to_string())
|
||||
});
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue