aboutsummaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authorFuwn <[email protected]>2023-04-10 07:23:29 +0000
committerFuwn <[email protected]>2023-04-10 07:23:29 +0000
commit9934455d4c1857b22a6f54105e54d241f5f61871 (patch)
treec0e4165c7ea43200fbeae6d472dc036c58b1079e /examples
parentfix(macros): restrict macro name (diff)
downloadwindmark-9934455d4c1857b22a6f54105e54d241f5f61871.tar.xz
windmark-9934455d4c1857b22a6f54105e54d241f5f61871.zip
refactor(partial): into trait
Diffstat (limited to 'examples')
-rw-r--r--examples/windmark.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/windmark.rs b/examples/windmark.rs
index e7e0a5c..9daeb9b 100644
--- a/examples/windmark.rs
+++ b/examples/windmark.rs
@@ -98,7 +98,7 @@ async fn main() -> Result<(), Box<dyn std::error::Error>> {
});
router.add_header(|_| "```\nART IS COOL\n```\nhi".to_string());
router.add_footer(|_| "Copyright 2022".to_string());
- router.add_footer(|context| {
+ router.add_footer(|context: RouteContext| {
format!("Another footer, but lower! (from {})", context.url.path())
});
router.mount(