From d66da17c17239408f2ddbc2794621e2d947056a3 Mon Sep 17 00:00:00 2001 From: Fuwn Date: Fri, 5 May 2023 01:33:55 +0000 Subject: feat(windmark): prelude feature flag --- examples/struct_router.rs | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'examples/struct_router.rs') diff --git a/examples/struct_router.rs b/examples/struct_router.rs index a636f7d..3401379 100644 --- a/examples/struct_router.rs +++ b/examples/struct_router.rs @@ -18,6 +18,7 @@ //! `cargo run --example struct_router` use rossweisse::route; +use windmark::response::Response; #[rossweisse::router] struct Router { @@ -27,10 +28,8 @@ struct Router { #[rossweisse::router] impl Router { #[route(index)] - pub fn index( - _context: windmark::context::RouteContext, - ) -> windmark::Response { - windmark::Response::success("Hello, World!") + pub fn index(_context: windmark::context::RouteContext) -> Response { + Response::success("Hello, World!") } } -- cgit v1.2.3