mirror of
https://github.com/lennart-k/rustical.git
synced 2025-12-14 17:12:22 +00:00
store: Fix test_calendar
This commit is contained in:
@@ -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(())
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user