caldav: refactor resource newtypes

This commit is contained in:
Lennart
2024-09-29 13:39:45 +02:00
parent 1b438ea98a
commit 7f164da438
7 changed files with 36 additions and 53 deletions

View File

@@ -130,12 +130,7 @@ impl<C: CalendarStore + ?Sized> ResourceService for PrincipalResource<C> {
.await?;
Ok(calendars
.into_iter()
.map(|cal| {
(
format!("{}/{}", &self.path, &cal.id),
CalendarFile { calendar: cal },
)
})
.map(|cal| (format!("{}/{}", &self.path, &cal.id), cal.into()))
.collect())
}