1
0
mirror of https://gitlab.com/xmpp-rs/xmpp-rs.git synced 2024-06-12 11:14:02 +02:00

minidom: fix boolean test

Issue introduced in 60ebcb8c8a.

Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
This commit is contained in:
Maxime “pep” Buquet 2023-12-16 00:20:03 +01:00
parent 4089891f6c
commit 8f18cf2208
No known key found for this signature in database
GPG Key ID: DEDA74AEECA9D0F2

View File

@ -711,7 +711,7 @@ impl Element {
/// Remove the leading nodes up to the first child element and
/// return it
pub fn unshift_child(&mut self) -> Option<Element> {
while self.children.is_empty() {
while !self.children.is_empty() {
if let Some(el) = self.children.remove(0).into_element() {
return Some(el);
}