Unverified Commit 2e584d23 authored by Hero Bird's avatar Hero Bird Committed by GitHub

[alloc] fix clippy warning (#435)

parent 7a44738a
Pipeline #95392 passed with stages
in 12 minutes and 31 seconds
......@@ -14,12 +14,12 @@
#[panic_handler]
pub fn panic(_info: &core::panic::PanicInfo) -> ! {
unsafe { core::intrinsics::abort() }
core::intrinsics::abort()
}
// `extern` fn uses type `core::alloc::Layout`, which is not FFI-safe
#[allow(improper_ctypes)]
#[alloc_error_handler]
pub extern "C" fn oom(_: core::alloc::Layout) -> ! {
unsafe { core::intrinsics::abort() }
core::intrinsics::abort()
}
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment