mirror of
https://github.com/lennart-k/rustical.git
synced 2025-12-13 22:52:22 +00:00
update quick_xml
This commit is contained in:
@@ -10,7 +10,7 @@ anyhow = { version = "1.0", features = ["backtrace"] }
|
||||
base64 = "0.21"
|
||||
derive_more = "0.99"
|
||||
futures-util = "0.3"
|
||||
quick-xml = { version = "0.30", features = [
|
||||
quick-xml = { version = "0.31", features = [
|
||||
"serde",
|
||||
"serde-types",
|
||||
"serialize",
|
||||
|
||||
@@ -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!")),
|
||||
|
||||
@@ -9,5 +9,5 @@ anyhow = "1.0"
|
||||
async-trait = "0.1"
|
||||
derive_more = "0.99"
|
||||
futures-util = "0.3"
|
||||
quick-xml = "0.30"
|
||||
quick-xml = "0.31"
|
||||
rustical_auth = { path = "../auth/" }
|
||||
|
||||
@@ -17,7 +17,7 @@ pub fn write_resourcetype<W: Write>(
|
||||
for resourcetype in types {
|
||||
writer.create_element(resourcetype).write_empty()?;
|
||||
}
|
||||
Ok(())
|
||||
Ok::<(), quick_xml::Error>(())
|
||||
})?;
|
||||
Ok(())
|
||||
}
|
||||
@@ -35,7 +35,7 @@ pub fn write_invalid_props_response<W: Write>(
|
||||
for prop in invalid_props {
|
||||
writer.create_element(prop).write_empty()?;
|
||||
}
|
||||
Ok(())
|
||||
Ok::<(), quick_xml::Error>(())
|
||||
})?;
|
||||
|
||||
Ok(())
|
||||
@@ -59,7 +59,7 @@ where
|
||||
writer
|
||||
.create_element("status")
|
||||
.write_text_content(BytesText::new(&format!("HTTP/1.1 {}", status)))?;
|
||||
Ok(())
|
||||
Ok::<(), quick_xml::Error>(())
|
||||
})?;
|
||||
Ok(())
|
||||
}
|
||||
@@ -84,7 +84,7 @@ where
|
||||
|
||||
write_propstat_element(writer, status, prop_closure)?;
|
||||
|
||||
Ok(())
|
||||
Ok::<(), quick_xml::Error>(())
|
||||
})?;
|
||||
Ok(())
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user