diff options
Diffstat (limited to 'examples')
| -rw-r--r-- | examples/windmark.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/windmark.rs b/examples/windmark.rs index 9c19cc3..9e23d6e 100644 --- a/examples/windmark.rs +++ b/examples/windmark.rs @@ -200,7 +200,7 @@ async fn main() -> Result<(), Box<dyn std::error::Error>> { ) } }); - router.mount_async("/async", move |_| { + router.mount("/async", move |_| { let async_clicks = async_clicks.clone(); async move { @@ -211,7 +211,7 @@ async fn main() -> Result<(), Box<dyn std::error::Error>> { Response::success(*clicks) } }); - router.mount_async("/async-nothing", |_| { + router.mount("/async-nothing", |_| { async { Response::success("This is an async route.") } }); |