aboutsummaryrefslogtreecommitdiff
path: root/examples/async_stateful_module.rs
diff options
context:
space:
mode:
authorFuwn <[email protected]>2023-05-05 01:33:55 +0000
committerFuwn <[email protected]>2023-05-05 01:33:55 +0000
commitd66da17c17239408f2ddbc2794621e2d947056a3 (patch)
treee448da50c46c429f6ca672aa070577766fffc9bc /examples/async_stateful_module.rs
parentdocs(rossweisse): revert to implementation (diff)
downloadwindmark-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.rs4
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!");
}