aboutsummaryrefslogtreecommitdiff
path: root/examples/struct_router.rs
diff options
context:
space:
mode:
authorFuwn <[email protected]>2023-05-05 00:31:39 +0000
committerFuwn <[email protected]>2023-05-05 00:31:39 +0000
commit230dd1877f906708dc487bf5c4d87a8769b680fb (patch)
tree2ffe4537cf9e5c991e702e2528f56bdd4a5a16ac /examples/struct_router.rs
parentdocs(readme): rossweisse info (diff)
downloadwindmark-230dd1877f906708dc487bf5c4d87a8769b680fb.tar.xz
windmark-230dd1877f906708dc487bf5c4d87a8769b680fb.zip
refactor: simplify imports
Diffstat (limited to 'examples/struct_router.rs')
-rw-r--r--examples/struct_router.rs4
1 files changed, 1 insertions, 3 deletions
diff --git a/examples/struct_router.rs b/examples/struct_router.rs
index a636f7d..af6bce9 100644
--- a/examples/struct_router.rs
+++ b/examples/struct_router.rs
@@ -17,8 +17,6 @@
//! `cargo run --example struct_router`
-use rossweisse::route;
-
#[rossweisse::router]
struct Router {
_phantom: (),
@@ -26,7 +24,7 @@ struct Router {
#[rossweisse::router]
impl Router {
- #[route(index)]
+ #[rossweisse::route(index)]
pub fn index(
_context: windmark::context::RouteContext,
) -> windmark::Response {