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 /examples/async_stateful_module.rs | |
| parent | docs(rossweisse): revert to implementation (diff) | |
| download | windmark-d66da17c17239408f2ddbc2794621e2d947056a3.tar.xz windmark-d66da17c17239408f2ddbc2794621e2d947056a3.zip | |
feat(windmark): prelude feature flag
Diffstat (limited to 'examples/async_stateful_module.rs')
| -rw-r--r-- | examples/async_stateful_module.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/async_stateful_module.rs b/examples/async_stateful_module.rs index 3c35486..e19eb69 100644 --- a/examples/async_stateful_module.rs +++ b/examples/async_stateful_module.rs @@ -17,7 +17,7 @@ //! `cargo run --example async_stateful_module --features response-macros` -use windmark::{context::HookContext, Router}; +use windmark::{context::HookContext, router::Router}; #[derive(Default)] struct Clicker { @@ -25,7 +25,7 @@ struct Clicker { } #[async_trait::async_trait] -impl windmark::AsyncModule for Clicker { +impl windmark::module::AsyncModule for Clicker { async fn on_attach(&mut self, _router: &mut Router) { println!("module 'clicker' has been attached!"); } |