From a28618d2efbbc903c66689e12d47f6f341c6c0f8 Mon Sep 17 00:00:00 2001 From: Antoni Boucher Date: Sat, 1 Oct 2022 19:53:14 -0400 Subject: Fix warnings --- example/alloc_example.rs | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) (limited to 'example/alloc_example.rs') diff --git a/example/alloc_example.rs b/example/alloc_example.rs index 74ea7ec4ede..c327b93f1bb 100644 --- a/example/alloc_example.rs +++ b/example/alloc_example.rs @@ -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] -- cgit 1.4.1-3-g733a5