mirror of
https://github.com/lennart-k/rustical.git
synced 2025-12-14 20:52:31 +00:00
clippy appeasement
This commit is contained in:
@@ -79,11 +79,9 @@ impl XmlSerialize for () {
|
|||||||
let qname = tagname.as_ref().map(|tagname| QName(tagname));
|
let qname = tagname.as_ref().map(|tagname| QName(tagname));
|
||||||
if let Some(qname) = &qname {
|
if let Some(qname) = &qname {
|
||||||
let mut bytes_start = BytesStart::from(qname.to_owned());
|
let mut bytes_start = BytesStart::from(qname.to_owned());
|
||||||
if !has_prefix {
|
if !has_prefix && let Some(ns) = &ns {
|
||||||
if let Some(ns) = &ns {
|
|
||||||
bytes_start.push_attribute((b"xmlns".as_ref(), ns.as_ref()));
|
bytes_start.push_attribute((b"xmlns".as_ref(), ns.as_ref()));
|
||||||
}
|
}
|
||||||
}
|
|
||||||
writer.write_event(Event::Empty(bytes_start))?;
|
writer.write_event(Event::Empty(bytes_start))?;
|
||||||
}
|
}
|
||||||
Ok(())
|
Ok(())
|
||||||
|
|||||||
Reference in New Issue
Block a user