mirror of
https://github.com/lennart-k/rustical.git
synced 2025-12-14 07:02:24 +00:00
refactoring
This commit is contained in:
@@ -118,19 +118,19 @@ pub async fn handle_mkcol_calendar_set<C: CalendarStore + ?Sized>(
|
|||||||
for prop in prop_node.children() {
|
for prop in prop_node.children() {
|
||||||
match prop.tag_name().name() {
|
match prop.tag_name().name() {
|
||||||
"displayname" => {
|
"displayname" => {
|
||||||
cal.name = prop.text().map(|s| s.to_string());
|
cal.name = prop.text().map(str::to_string);
|
||||||
}
|
}
|
||||||
"timezone" => {
|
"timezone" => {
|
||||||
cal.timezone = prop.text().map(|s| s.to_string());
|
cal.timezone = prop.text().map(str::to_string);
|
||||||
}
|
}
|
||||||
"calendar-color" => {
|
"calendar-color" => {
|
||||||
cal.color = prop.text().map(|s| s.to_string());
|
cal.color = prop.text().map(str::to_string);
|
||||||
}
|
}
|
||||||
"calendar-description" => {
|
"calendar-description" => {
|
||||||
cal.description = prop.text().map(|s| s.to_string());
|
cal.description = prop.text().map(str::to_string);
|
||||||
}
|
}
|
||||||
"calendar-timezone" => {
|
"calendar-timezone" => {
|
||||||
cal.timezone = prop.text().map(|s| s.to_string());
|
cal.timezone = prop.text().map(str::to_string);
|
||||||
}
|
}
|
||||||
_ => {
|
_ => {
|
||||||
println!("unsupported mkcol tag: {}", prop.tag_name().name())
|
println!("unsupported mkcol tag: {}", prop.tag_name().name())
|
||||||
|
|||||||
Reference in New Issue
Block a user