Fix warnings in alloc_example.rs
This commit is contained in:
parent
5443f39f87
commit
a76748e54a
1 changed files with 2 additions and 6 deletions
|
@ -18,16 +18,12 @@ extern "C" {
|
||||||
|
|
||||||
#[panic_handler]
|
#[panic_handler]
|
||||||
fn panic_handler(_: &core::panic::PanicInfo) -> ! {
|
fn panic_handler(_: &core::panic::PanicInfo) -> ! {
|
||||||
unsafe {
|
core::intrinsics::abort();
|
||||||
core::intrinsics::abort();
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
#[alloc_error_handler]
|
#[alloc_error_handler]
|
||||||
fn alloc_error_handler(_: alloc::alloc::Layout) -> ! {
|
fn alloc_error_handler(_: alloc::alloc::Layout) -> ! {
|
||||||
unsafe {
|
core::intrinsics::abort();
|
||||||
core::intrinsics::abort();
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
#[start]
|
#[start]
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue