aboutsummaryrefslogtreecommitdiff
path: root/src/module/asynchronous.rs
diff options
context:
space:
mode:
authorFuwn <[email protected]>2026-04-14 09:05:03 +0000
committerFuwn <[email protected]>2026-04-14 09:05:03 +0000
commit92180ab10c5cd1394b3c288e4d730aa37c527629 (patch)
tree17c1495e9724662206ef8c42091f972a0f2bc243 /src/module/asynchronous.rs
parentperf(router)!: Remove AsyncMutex from route and error handlers (diff)
downloadarchived-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.rs4
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) {}
}