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
1 changed files with 2 additions and 2 deletions

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