From f2e5312923010adb37172a2d80b61b6da9e47d0f Mon Sep 17 00:00:00 2001 From: Dominik Maier Date: Tue, 29 Oct 2024 12:45:15 +0100 Subject: [PATCH] fix warning --- examples/gum/linux_no_std/src/main.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/gum/linux_no_std/src/main.rs b/examples/gum/linux_no_std/src/main.rs index 57db8c85..65a71f22 100644 --- a/examples/gum/linux_no_std/src/main.rs +++ b/examples/gum/linux_no_std/src/main.rs @@ -44,7 +44,7 @@ static ALLOC: Bump<[u8; HEAP_SIZE]> = Bump::uninit(); #[no_mangle] extern "C" fn main() { println!("NOSTD START"); - let gum = unsafe { Gum::obtain() }; + let gum = Gum::obtain(); println!("gum: {:p}", &gum); println!("NOSTD DONE"); unsafe { _exit(0) };