minidom: fix boolean test
Build / lint (push) Has been cancelled Details
Build / test-stable (push) Has been cancelled Details
Build / test-nightly (push) Has been cancelled Details

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
Signed by: pep
GPG Key ID: DEDA74AEECA9D0F2
1 changed files with 1 additions and 1 deletions

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);
}