From e6abd9f5df1a451270df2316e4dee0bcc5c010b2 Mon Sep 17 00:00:00 2001 From: Wilfried Chauveau Date: Sun, 21 Nov 2021 08:33:18 +0000 Subject: [PATCH] Fix warning for field never used. --- embassy-macros/src/lib.rs | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/embassy-macros/src/lib.rs b/embassy-macros/src/lib.rs index da08a59c..8d8accfc 100644 --- a/embassy-macros/src/lib.rs +++ b/embassy-macros/src/lib.rs @@ -272,6 +272,13 @@ mod chip; #[path = "chip/rp.rs"] mod chip; +#[cfg(any( + feature = "nrf", + feature = "rp", + feature = "stm32", + feature = "wasm", + feature = "std" +))] #[derive(Debug, FromMeta)] struct MainArgs { #[darling(default)]