diff options
| author | Fuwn <[email protected]> | 2023-04-06 08:34:24 +0000 |
|---|---|---|
| committer | Fuwn <[email protected]> | 2023-04-06 08:34:24 +0000 |
| commit | 873cef6fbba01c99733c97378b5f001779604cf4 (patch) | |
| tree | 4dc531b2005740ec5048350ecdae7ba15836e058 /src/module | |
| parent | feat(cargo): bump 0.3.1 -> 0.3.2 (diff) | |
| download | windmark-873cef6fbba01c99733c97378b5f001779604cf4.tar.xz windmark-873cef6fbba01c99733c97378b5f001779604cf4.zip | |
fix(context): custom parameters format for easy lifetimes
Diffstat (limited to 'src/module')
| -rw-r--r-- | src/module/asynchronous.rs | 4 | ||||
| -rw-r--r-- | src/module/sync.rs | 4 |
2 files changed, 4 insertions, 4 deletions
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) {} } diff --git a/src/module/sync.rs b/src/module/sync.rs index 0c2a67b..0628dfa 100644 --- a/src/module/sync.rs +++ b/src/module/sync.rs @@ -23,8 +23,8 @@ pub trait Module { fn on_attach(&mut self, _: &mut Router) {} /// Called before a route is mounted. - fn on_pre_route(&mut self, _: HookContext<'_>) {} + fn on_pre_route(&mut self, _: HookContext) {} /// Called after a route is mounted. - fn on_post_route(&mut self, _: HookContext<'_>) {} + fn on_post_route(&mut self, _: HookContext) {} } |