From 2cb08809ba9a9089dc3c3f17014a4b4b46a10ed8 Mon Sep 17 00:00:00 2001 From: Tom Parker-Shemilt Date: Sat, 27 Apr 2024 20:25:27 +0100 Subject: [PATCH] Only test async with mod when async is on --- serial_test_derive/src/lib.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/serial_test_derive/src/lib.rs b/serial_test_derive/src/lib.rs index 5ff5e78..abc4834 100644 --- a/serial_test_derive/src/lib.rs +++ b/serial_test_derive/src/lib.rs @@ -779,6 +779,7 @@ mod tests { } #[test] + #[cfg(feature = "async")] fn test_mod_with_async() { init(); let attrs = proc_macro2::TokenStream::new();