mirror of
https://github.com/lennart-k/rustical.git
synced 2025-12-14 17:12:22 +00:00
minor refactoring
This commit is contained in:
@@ -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>))
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user