From 26db727f8e1a043856121c7f5fb06c82f90a71c1 Mon Sep 17 00:00:00 2001 From: Oleksandr Babak Date: Thu, 13 Jun 2024 14:50:36 +0200 Subject: [PATCH] fix: remove unneded `unsafe` block` --- src/lib.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib.rs b/src/lib.rs index 3e3acfa..451468d 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -238,7 +238,7 @@ macro_rules! make_static { $(#[$m])* static STATIC_CELL: $crate::StaticCell = $crate::StaticCell::new(); #[deny(unused_attributes)] - let (x,) = unsafe { STATIC_CELL.uninit().write(($val,)) }; + let (x,) = STATIC_CELL.uninit().write(($val,)); x }}; }