From 230dd1877f906708dc487bf5c4d87a8769b680fb Mon Sep 17 00:00:00 2001 From: Fuwn Date: Fri, 5 May 2023 00:31:39 +0000 Subject: refactor: simplify imports --- examples/async_stateful_module.rs | 4 +--- examples/struct_router.rs | 4 +--- 2 files changed, 2 insertions(+), 6 deletions(-) (limited to 'examples') diff --git a/examples/async_stateful_module.rs b/examples/async_stateful_module.rs index 3a2cb0a..3c35486 100644 --- a/examples/async_stateful_module.rs +++ b/examples/async_stateful_module.rs @@ -17,13 +17,11 @@ //! `cargo run --example async_stateful_module --features response-macros` -use std::sync::{Arc, Mutex}; - use windmark::{context::HookContext, Router}; #[derive(Default)] struct Clicker { - clicks: Arc>, + clicks: std::sync::Arc>, } #[async_trait::async_trait] 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 { -- cgit v1.2.3