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
commit1ecb09edf66cac223494c8eb5f66eeddd1d2393c (patch)
treec0e4165c7ea43200fbeae6d472dc036c58b1079e /examples
parentfix(macros): restrict macro name (diff)
downloadwindmark-1ecb09edf66cac223494c8eb5f66eeddd1d2393c.tar.xz
windmark-1ecb09edf66cac223494c8eb5f66eeddd1d2393c.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(