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 }}; }