mirror of
https://gitlab.com/xmpp-rs/xmpp-rs.git
synced 2024-07-12 22:21:53 +00:00
minidom: fix boolean test
Issue introduced in 60ebcb8c8a
.
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
This commit is contained in:
parent
4089891f6c
commit
8f18cf2208
1 changed files with 1 additions and 1 deletions
|
@ -711,7 +711,7 @@ impl Element {
|
||||||
/// Remove the leading nodes up to the first child element and
|
/// Remove the leading nodes up to the first child element and
|
||||||
/// return it
|
/// return it
|
||||||
pub fn unshift_child(&mut self) -> Option<Element> {
|
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() {
|
if let Some(el) = self.children.remove(0).into_element() {
|
||||||
return Some(el);
|
return Some(el);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue