mirror of
https://github.com/lennart-k/rustical.git
synced 2025-12-14 14:02:29 +00:00
update quick_xml
This commit is contained in:
@@ -114,7 +114,7 @@ impl<C: CalendarStore + ?Sized> Resource for CalendarResource<C> {
|
||||
.create_element("C:comp")
|
||||
.with_attribute(("name", "VEVENT"))
|
||||
.write_empty()?;
|
||||
Ok(())
|
||||
Ok::<(), quick_xml::Error>(())
|
||||
})?;
|
||||
}
|
||||
"supported-calendar-data" => {
|
||||
@@ -129,7 +129,7 @@ impl<C: CalendarStore + ?Sized> Resource for CalendarResource<C> {
|
||||
("version", "2.0"),
|
||||
])
|
||||
.write_empty()?;
|
||||
Ok(())
|
||||
Ok::<(), quick_xml::Error>(())
|
||||
})?;
|
||||
}
|
||||
"getcontenttype" => {
|
||||
@@ -157,10 +157,10 @@ impl<C: CalendarStore + ?Sized> Resource for CalendarResource<C> {
|
||||
.create_element("privilege")
|
||||
.write_inner_content(|writer| {
|
||||
writer.create_element(privilege).write_empty()?;
|
||||
Ok(())
|
||||
Ok::<(), quick_xml::Error>(())
|
||||
})?;
|
||||
}
|
||||
Ok(())
|
||||
Ok::<(), quick_xml::Error>(())
|
||||
})?;
|
||||
}
|
||||
_ => {
|
||||
|
||||
@@ -92,7 +92,7 @@ impl<C: CalendarStore + ?Sized> Resource for PrincipalCalendarsResource<C> {
|
||||
"{}/{}/",
|
||||
self.prefix, self.principal
|
||||
)))?;
|
||||
Ok(())
|
||||
Ok::<(), quick_xml::Error>(())
|
||||
})?;
|
||||
}
|
||||
"allprops" => {}
|
||||
|
||||
@@ -54,7 +54,7 @@ impl Resource for RootResource {
|
||||
"{}/{}",
|
||||
self.prefix, self.principal
|
||||
)))?;
|
||||
Ok(())
|
||||
Ok::<(), quick_xml::Error>(())
|
||||
})?;
|
||||
}
|
||||
_ => return Err(anyhow!("invalid prop!")),
|
||||
|
||||
Reference in New Issue
Block a user