store: Fix test_calendar

This commit is contained in:
Lennart
2025-01-01 14:18:37 +01:00
parent 00d284b0fb
commit 11fa0f24c7
5 changed files with 34 additions and 7 deletions

View File

@@ -18,7 +18,7 @@ impl XmlSerialize for Resourcetype {
) -> std::io::Result<()> {
let tag_str = tag.map(String::from_utf8_lossy);
if let Some(tag) = &tag_str {
writer.write_event(Event::Start(BytesStart::new(tag.to_owned())))?;
writer.write_event(Event::Start(BytesStart::new(tag.clone())))?;
}
for &ty in self.0 {
@@ -26,7 +26,7 @@ impl XmlSerialize for Resourcetype {
}
if let Some(tag) = &tag_str {
writer.write_event(Event::End(BytesEnd::new(tag.to_owned())))?;
writer.write_event(Event::End(BytesEnd::new(tag.clone())))?;
}
Ok(())
}