Skip to content

Commit

Permalink
chore: silence rustc warning for panic_handler in examples
Browse files Browse the repository at this point in the history
  • Loading branch information
greenhat committed Feb 18, 2025
1 parent 599f1ad commit 8d8045a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions examples/collatz/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
// static ALLOC: BumpAlloc = miden::BumpAlloc::new();

// Required for no-std crates
#[cfg(not(test))]
#[panic_handler]
fn my_panic(_info: &core::panic::PanicInfo) -> ! {
loop {}
Expand Down
1 change: 1 addition & 0 deletions examples/fibonacci/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@

// Required for no-std crates
#[panic_handler]
#[cfg(not(test))]
fn my_panic(_info: &core::panic::PanicInfo) -> ! {
loop {}
}
Expand Down

0 comments on commit 8d8045a

Please sign in to comment.