diff options
| author | Fuwn <[email protected]> | 2023-05-05 01:33:55 +0000 |
|---|---|---|
| committer | Fuwn <[email protected]> | 2023-05-05 01:33:55 +0000 |
| commit | d66da17c17239408f2ddbc2794621e2d947056a3 (patch) | |
| tree | e448da50c46c429f6ca672aa070577766fffc9bc /examples/async.rs | |
| parent | docs(rossweisse): revert to implementation (diff) | |
| download | windmark-d66da17c17239408f2ddbc2794621e2d947056a3.tar.xz windmark-d66da17c17239408f2ddbc2794621e2d947056a3.zip | |
feat(windmark): prelude feature flag
Diffstat (limited to 'examples/async.rs')
| -rw-r--r-- | examples/async.rs | 4 |
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( |