1
0
Fork 0
mirror of https://gitlab.com/famedly/conduit.git synced 2024-09-11 22:19:10 +02:00

Change this to handler

This commit is contained in:
Jonas Platte 2022-02-13 11:30:04 +00:00 committed by Jonathan de Jong
parent b8d92d3cec
commit aee6bf7e7a

View file

@ -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)
}))
}