From c38fbe004ff1871f039c98e454e3c84714c7113c Mon Sep 17 00:00:00 2001 From: Lennart K <18233294+lennart-k@users.noreply.github.com> Date: Thu, 28 Aug 2025 14:55:45 +0200 Subject: [PATCH] clippy appeasement --- crates/xml/src/se.rs | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/crates/xml/src/se.rs b/crates/xml/src/se.rs index ebc3c6d..156e0e3 100644 --- a/crates/xml/src/se.rs +++ b/crates/xml/src/se.rs @@ -79,10 +79,8 @@ impl XmlSerialize for () { let qname = tagname.as_ref().map(|tagname| QName(tagname)); if let Some(qname) = &qname { let mut bytes_start = BytesStart::from(qname.to_owned()); - if !has_prefix { - if let Some(ns) = &ns { - bytes_start.push_attribute((b"xmlns".as_ref(), ns.as_ref())); - } + if !has_prefix && let Some(ns) = &ns { + bytes_start.push_attribute((b"xmlns".as_ref(), ns.as_ref())); } writer.write_event(Event::Empty(bytes_start))?; }