From a76748e54a052c401e97648aac553bcc65ca0fcf Mon Sep 17 00:00:00 2001 From: bjorn3 Date: Tue, 16 Jun 2020 10:42:44 +0200 Subject: [PATCH] Fix warnings in alloc_example.rs --- example/alloc_example.rs | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/example/alloc_example.rs b/example/alloc_example.rs index f75103c76a5..dc2ad4c676e 100644 --- a/example/alloc_example.rs +++ b/example/alloc_example.rs @@ -18,16 +18,12 @@ #[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]