Skip to content

Commit

Permalink
fix: remove unneded unsafe block`
Browse files Browse the repository at this point in the history
  • Loading branch information
Ddystopia committed Jun 13, 2024
1 parent e3895a8 commit 26db727
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -238,7 +238,7 @@ macro_rules! make_static {
$(#[$m])*
static STATIC_CELL: $crate::StaticCell<T> = $crate::StaticCell::new();
#[deny(unused_attributes)]
let (x,) = unsafe { STATIC_CELL.uninit().write(($val,)) };
let (x,) = STATIC_CELL.uninit().write(($val,));
x
}};
}

0 comments on commit 26db727

Please sign in to comment.