minor refactoring

This commit is contained in:
Lennart
2024-10-31 18:09:57 +01:00
parent 9714533ef1
commit 9db7f629f2

View File

@@ -328,10 +328,10 @@ impl<C: CalendarStore + ?Sized> ResourceService for CalendarResourceService<C> {
#[inline] #[inline]
fn actix_additional_routes(res: actix_web::Resource) -> actix_web::Resource { fn actix_additional_routes(res: actix_web::Resource) -> actix_web::Resource {
let report_method = || web::method(Method::from_str("REPORT").unwrap()); let report_method = web::method(Method::from_str("REPORT").unwrap());
let mkcalendar_method = || web::method(Method::from_str("MKCALENDAR").unwrap()); let mkcalendar_method = web::method(Method::from_str("MKCALENDAR").unwrap());
res.route(report_method().to(route_report_calendar::<C>)) res.route(report_method.to(route_report_calendar::<C>))
.route(mkcalendar_method().to(route_mkcalendar::<C>)) .route(mkcalendar_method.to(route_mkcalendar::<C>))
} }
} }