Fix warnings in alloc_example.rs

This commit is contained in:
bjorn3 2020-06-16 10:42:44 +02:00
parent 5443f39f87
commit a76748e54a

View File

@ -18,16 +18,12 @@ extern "C" {
#[panic_handler]
fn panic_handler(_: &core::panic::PanicInfo) -> ! {
unsafe {
core::intrinsics::abort();
}
core::intrinsics::abort();
}
#[alloc_error_handler]
fn alloc_error_handler(_: alloc::alloc::Layout) -> ! {
unsafe {
core::intrinsics::abort();
}
core::intrinsics::abort();
}
#[start]