From 35f38f8980403b4b53c16cb445734536a39e76ba Mon Sep 17 00:00:00 2001 From: Quinn Date: Tue, 8 Apr 2025 17:28:31 +0200 Subject: [PATCH] fix: get rid of linter warning --- src/lib.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/lib.rs b/src/lib.rs index 1b80a77..d24ba41 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -1,5 +1,6 @@ -#![no_std] +#![cfg_attr(not(test), no_std)] +#[cfg(not(test))] #[panic_handler] fn panic(_info: &core::panic::PanicInfo) -> ! { loop {}