Change this to handler

merge-requests/305/head
Jonas Platte 2 years ago committed by Jonathan de Jong
parent b8d92d3cec
commit aee6bf7e7a

@ -392,10 +392,10 @@ macro_rules! impl_ruma_handler {
let method_filter = method_to_filter(meta.method);
for path in IntoIterator::into_iter([meta.unstable_path, meta.r0_path, meta.stable_path]).flatten() {
let this = self.clone();
let handler = self.clone();
router = router.route(path, on(method_filter, |$( $ty: $ty, )* req| async move {
this($($ty,)* req).await.map(RumaResponse)
handler($($ty,)* req).await.map(RumaResponse)
}))
}

Loading…
Cancel
Save