mirror of
https://github.com/lennart-k/rustical.git
synced 2025-12-14 17:12:22 +00:00
Some refactoring
This commit is contained in:
@@ -180,13 +180,11 @@ pub async fn route_report_calendar<A: CheckAuthentication, C: CalendarStore + ?S
|
||||
|
||||
let mut responses = Vec::new();
|
||||
for event in events {
|
||||
let path = format!("{}/{}", req.path(), event.get_uid());
|
||||
responses.push(
|
||||
EventFile {
|
||||
path: format!("{}/{}", req.path(), event.get_uid()),
|
||||
event,
|
||||
}
|
||||
.propfind(&prefix.0, props.clone())
|
||||
.await?,
|
||||
EventFile { event }
|
||||
.propfind(&prefix.0, path, props.clone())
|
||||
.await?,
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user