From 875e201e94ab602eb47cebc3f17cd7ab4ead643c Mon Sep 17 00:00:00 2001 From: Fuwn Date: Thu, 27 Apr 2023 06:24:17 +0000 Subject: fix(ci): fix tests and doc examples --- examples/async.rs | 3 +++ 1 file changed, 3 insertions(+) (limited to 'examples') diff --git a/examples/async.rs b/examples/async.rs index 2c32220..d803ad6 100644 --- a/examples/async.rs +++ b/examples/async.rs @@ -20,7 +20,10 @@ #[windmark::main] async fn main() -> Result<(), Box> { let mut router = windmark::Router::new(); + #[cfg(feature = "tokio")] let async_clicks = std::sync::Arc::new(tokio::sync::Mutex::new(0)); + #[cfg(feature = "async-std")] + let async_clicks = std::sync::Arc::new(async_std::sync::Mutex::new(0)); router.set_private_key_file("windmark_private.pem"); router.set_certificate_file("windmark_public.pem"); -- cgit v1.2.3