diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml index cdaf05e..fb29a44 100644 --- a/.github/workflows/rust.yml +++ b/.github/workflows/rust.yml @@ -18,7 +18,7 @@ jobs: - name: Build run: cargo build --verbose - name: Run clippy - run: cargo --all-targets --all-features + run: cargo clippy --all-targets --all-features build: strategy: diff --git a/src/primitives.rs b/src/primitives.rs index 9808f7e..11d2c7f 100644 --- a/src/primitives.rs +++ b/src/primitives.rs @@ -26,8 +26,8 @@ pub fn _eprint(args: core::fmt::Arguments) { } } -#[cfg_attr(not(feature = "std"), panic_handler)] -#[cfg(not(feature = "std"))] +#[cfg_attr(not(any(feature = "std", test)), panic_handler)] +#[cfg(not(any(feature = "std", test)))] fn panic(info: &core::panic::PanicInfo) -> ! { eprintln!("{}", info); unsafe { zan_abort(); }