aboutsummaryrefslogtreecommitdiff
path: root/examples/simple_async_std.rs
diff options
context:
space:
mode:
Diffstat (limited to 'examples/simple_async_std.rs')
-rw-r--r--examples/simple_async_std.rs6
1 files changed, 4 insertions, 2 deletions
diff --git a/examples/simple_async_std.rs b/examples/simple_async_std.rs
index 9896590..75cd66e 100644
--- a/examples/simple_async_std.rs
+++ b/examples/simple_async_std.rs
@@ -19,10 +19,12 @@
#[windmark::main]
async fn main() -> Result<(), Box<dyn std::error::Error>> {
- windmark::Router::new()
+ windmark::router::Router::new()
.set_private_key_file("windmark_private.pem")
.set_certificate_file("windmark_public.pem")
- .mount("/", |_| windmark::Response::success("Hello, async-std!"))
+ .mount("/", |_| {
+ windmark::response::Response::success("Hello, async-std!")
+ })
.run()
.await
}