diff options
| author | Fuwn <[email protected]> | 2023-05-05 01:33:55 +0000 |
|---|---|---|
| committer | Fuwn <[email protected]> | 2023-05-05 01:33:55 +0000 |
| commit | d66da17c17239408f2ddbc2794621e2d947056a3 (patch) | |
| tree | e448da50c46c429f6ca672aa070577766fffc9bc /src/module | |
| parent | docs(rossweisse): revert to implementation (diff) | |
| download | windmark-d66da17c17239408f2ddbc2794621e2d947056a3.tar.xz windmark-d66da17c17239408f2ddbc2794621e2d947056a3.zip | |
feat(windmark): prelude feature flag
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) {} |