aboutsummaryrefslogtreecommitdiff
path: root/examples/async.rs
diff options
context:
space:
mode:
Diffstat (limited to 'examples/async.rs')
-rw-r--r--examples/async.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/async.rs b/examples/async.rs
index d803ad6..f2674f0 100644
--- a/examples/async.rs
+++ b/examples/async.rs
@@ -19,7 +19,7 @@
#[windmark::main]
async fn main() -> Result<(), Box<dyn std::error::Error>> {
- let mut router = windmark::Router::new();
+ let mut router = windmark::router::Router::new();
#[cfg(feature = "tokio")]
let async_clicks = std::sync::Arc::new(tokio::sync::Mutex::new(0));
#[cfg(feature = "async-std")]
@@ -35,7 +35,7 @@ async fn main() -> Result<(), Box<dyn std::error::Error>> {
*clicks += 1;
- windmark::Response::success(*clicks)
+ windmark::response::Response::success(*clicks)
}
});
router.mount(