From c6f48ebb1d5b2a37cb7780cee4b1a909f09d2712 Mon Sep 17 00:00:00 2001 From: bjorn3 <17426603+bjorn3@users.noreply.github.com> Date: Sun, 19 Feb 2023 18:22:15 +0000 Subject: [PATCH] Fix warning --- example/mini_core_hello_world.rs | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/example/mini_core_hello_world.rs b/example/mini_core_hello_world.rs index 39076f4902e..c323e72ba78 100644 --- a/example/mini_core_hello_world.rs +++ b/example/mini_core_hello_world.rs @@ -344,10 +344,8 @@ fn main() { #[repr(simd)] struct V([f64; 2]); - unsafe { - let f = V([0.0, 1.0]); - let _a = f.0[0]; - } + let f = V([0.0, 1.0]); + let _a = f.0[0]; } #[cfg(all(not(jit), target_arch = "x86_64", any(target_os = "linux", target_os = "darwin")))]