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/stateless_module.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/stateless_module.rs')
| -rw-r--r-- | examples/stateless_module.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/examples/stateless_module.rs b/examples/stateless_module.rs index f43ce16..f747aac 100644 --- a/examples/stateless_module.rs +++ b/examples/stateless_module.rs @@ -17,10 +17,10 @@ //! `cargo run --example stateless_module` -use windmark::Router; +use windmark::{response::Response, router::Router}; -fn smiley(_context: windmark::context::RouteContext) -> windmark::Response { - windmark::Response::success("😀") +fn smiley(_context: windmark::context::RouteContext) -> Response { + Response::success("😀") } fn emojis(router: &mut Router) { router.mount("/smiley", smiley); } |