From be856a24b594813e44fa375b5e4bfeec6c8adfc1 Mon Sep 17 00:00:00 2001 From: Caleb Jamison Date: Tue, 24 Oct 2023 10:36:46 -0400 Subject: [PATCH] Better cfg fixup --- embassy-lora/src/lib.rs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/embassy-lora/src/lib.rs b/embassy-lora/src/lib.rs index 47b281ab16..7c718d062d 100644 --- a/embassy-lora/src/lib.rs +++ b/embassy-lora/src/lib.rs @@ -1,7 +1,6 @@ #![no_std] #![feature(async_fn_in_trait)] -#[cfg(feature = "stm32wl")] -#![feature(try_blocks)] +#![cfg_attr(feature = "stm32wl", feature(try_blocks))] //! embassy-lora holds LoRa-specific functionality. pub(crate) mod fmt;