diff options
| author | Fuwn <[email protected]> | 2023-04-10 07:23:29 +0000 |
|---|---|---|
| committer | Fuwn <[email protected]> | 2023-04-10 07:23:29 +0000 |
| commit | 9934455d4c1857b22a6f54105e54d241f5f61871 (patch) | |
| tree | c0e4165c7ea43200fbeae6d472dc036c58b1079e /examples | |
| parent | fix(macros): restrict macro name (diff) | |
| download | windmark-9934455d4c1857b22a6f54105e54d241f5f61871.tar.xz windmark-9934455d4c1857b22a6f54105e54d241f5f61871.zip | |
refactor(partial): into trait
Diffstat (limited to 'examples')
| -rw-r--r-- | examples/windmark.rs | 2 |
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( |