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

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

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