diff options
Diffstat (limited to 'src/module')
| -rw-r--r-- | src/module/asynchronous.rs | 2 | ||||
| -rw-r--r-- | src/module/sync.rs | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/module/asynchronous.rs b/src/module/asynchronous.rs index 2459518..219f6c2 100644 --- a/src/module/asynchronous.rs +++ b/src/module/asynchronous.rs @@ -20,7 +20,7 @@ use crate::context::HookContext; #[async_trait::async_trait] pub trait AsyncModule: Send + Sync { /// Called right after the module is attached. - async fn on_attach(&mut self, _: &mut crate::Router) {} + async fn on_attach(&mut self, _: &mut crate::router::Router) {} /// Called before a route is mounted. async fn on_pre_route(&mut self, _: HookContext) {} diff --git a/src/module/sync.rs b/src/module/sync.rs index 4b6de4d..1e1c565 100644 --- a/src/module/sync.rs +++ b/src/module/sync.rs @@ -19,7 +19,7 @@ use crate::context::HookContext; pub trait Module { /// Called right after the module is attached. - fn on_attach(&mut self, _: &mut crate::Router) {} + fn on_attach(&mut self, _: &mut crate::router::Router) {} /// Called before a route is mounted. fn on_pre_route(&mut self, _: HookContext) {} |