aboutsummaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authorFuwn <[email protected]>2023-04-06 08:34:24 +0000
committerFuwn <[email protected]>2023-04-06 08:34:24 +0000
commit873cef6fbba01c99733c97378b5f001779604cf4 (patch)
tree4dc531b2005740ec5048350ecdae7ba15836e058 /examples
parentfeat(cargo): bump 0.3.1 -> 0.3.2 (diff)
downloadwindmark-873cef6fbba01c99733c97378b5f001779604cf4.tar.xz
windmark-873cef6fbba01c99733c97378b5f001779604cf4.zip
fix(context): custom parameters format for easy lifetimes
Diffstat (limited to 'examples')
-rw-r--r--examples/windmark.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/windmark.rs b/examples/windmark.rs
index 0cdecd5..677a694 100644
--- a/examples/windmark.rs
+++ b/examples/windmark.rs
@@ -39,7 +39,7 @@ impl windmark::AsyncModule for Clicker {
println!("clicker has been attached!");
}
- async fn on_pre_route(&mut self, context: HookContext<'_>) {
+ async fn on_pre_route(&mut self, context: HookContext) {
self.clicks += 1;
info!(
@@ -49,7 +49,7 @@ impl windmark::AsyncModule for Clicker {
);
}
- async fn on_post_route(&mut self, context: HookContext<'_>) {
+ async fn on_post_route(&mut self, context: HookContext) {
info!(
"clicker has been called post-route on {} with {} clicks!",
context.url.path(),