From 873cef6fbba01c99733c97378b5f001779604cf4 Mon Sep 17 00:00:00 2001 From: Fuwn Date: Thu, 6 Apr 2023 08:34:24 +0000 Subject: fix(context): custom parameters format for easy lifetimes --- src/module/asynchronous.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/module/asynchronous.rs') diff --git a/src/module/asynchronous.rs b/src/module/asynchronous.rs index 3d0ddd5..ea69d60 100644 --- a/src/module/asynchronous.rs +++ b/src/module/asynchronous.rs @@ -24,8 +24,8 @@ pub trait AsyncModule: Send + Sync { async fn on_attach(&mut self, _: &mut Router) {} /// Called before a route is mounted. - async fn on_pre_route(&mut self, _: HookContext<'_>) {} + async fn on_pre_route(&mut self, _: HookContext) {} /// Called after a route is mounted. - async fn on_post_route(&mut self, _: HookContext<'_>) {} + async fn on_post_route(&mut self, _: HookContext) {} } -- cgit v1.2.3