diff --git a/src/bare-metal/alloc-example/src/main.rs b/src/bare-metal/alloc-example/src/main.rs index 7ec0f0b2..3cf7f30d 100644 --- a/src/bare-metal/alloc-example/src/main.rs +++ b/src/bare-metal/alloc-example/src/main.rs @@ -17,9 +17,9 @@ #![no_std] extern crate alloc; +extern crate panic_halt as _; use alloc::{string::ToString, vec::Vec}; -use core::panic::PanicInfo; use buddy_system_allocator::LockedHeap; #[global_allocator] @@ -40,9 +40,3 @@ pub fn entry() { let mut v = Vec::new(); v.push("A string".to_string()); } -// ANCHOR_END: Alloc - -#[panic_handler] -fn panic(_panic: &PanicInfo) -> ! { - loop {} -}