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:
parent
b8d92d3cec
commit
aee6bf7e7a
1 changed files with 2 additions and 2 deletions
|
@ -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…
Reference in a new issue