diff options
| author | Fuwn <[email protected]> | 2026-04-14 09:05:03 +0000 |
|---|---|---|
| committer | Fuwn <[email protected]> | 2026-04-14 09:05:03 +0000 |
| commit | 92180ab10c5cd1394b3c288e4d730aa37c527629 (patch) | |
| tree | 17c1495e9724662206ef8c42091f972a0f2bc243 /src/module/asynchronous.rs | |
| parent | perf(router)!: Remove AsyncMutex from route and error handlers (diff) | |
| download | archived-windmark-92180ab10c5cd1394b3c288e4d730aa37c527629.tar.xz archived-windmark-92180ab10c5cd1394b3c288e4d730aa37c527629.zip | |
perf(router)!: Pass HookContext by reference to modules and hooks
Diffstat (limited to 'src/module/asynchronous.rs')
| -rw-r--r-- | src/module/asynchronous.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/module/asynchronous.rs b/src/module/asynchronous.rs index 8822ea4..1cd5673 100644 --- a/src/module/asynchronous.rs +++ b/src/module/asynchronous.rs @@ -6,8 +6,8 @@ pub trait AsyncModule: Send + Sync { async fn on_attach(&mut self, _: &mut crate::router::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) {} } |