Skip to content

Commit

Permalink
Fixing panic handler
Browse files Browse the repository at this point in the history
  • Loading branch information
jzbor committed Jun 13, 2024
1 parent 5e13c14 commit 5d8dc4a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
4 changes: 2 additions & 2 deletions src/primitives.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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(); }
Expand Down

0 comments on commit 5d8dc4a

Please sign in to comment.