Refactor: to_ics to as_ics

This commit is contained in:
Lennart
2023-09-16 14:07:52 +02:00
parent 7edb041eb7
commit 78a5a95aa6
3 changed files with 4 additions and 4 deletions

View File

@@ -60,7 +60,7 @@ impl<C: CalendarStore> Resource for EventResource<C> {
write_string_prop(writer, "getetag", &self.event.get_etag())?;
}
"calendar-data" => {
write_string_prop(writer, "C:calendar-data", self.event.to_ics())?;
write_string_prop(writer, "C:calendar-data", self.event.as_ics())?;
}
"getcontenttype" => {
write_string_prop(writer, "getcontenttype", "text/calendar;charset=utf-8")?;