clippy appeasement

This commit is contained in:
Lennart
2025-08-30 11:56:58 +02:00
parent 96b63848f0
commit 76c03fa4d4
8 changed files with 48 additions and 53 deletions

View File

@@ -35,10 +35,8 @@ impl XmlSerialize for TagList {
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::Start(bytes_start))?;
}