clippy appeasement

This commit is contained in:
Lennart K
2025-08-28 14:55:45 +02:00
parent bf5d874481
commit c38fbe004f

View File

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