Skip to content

Commit

Permalink
Merge pull request #15 from Ddystopia/main
Browse files Browse the repository at this point in the history
fix: remove unneded `unsafe` block`
  • Loading branch information
Dirbaio authored Jul 2, 2024
2 parents e3895a8 + 26db727 commit 3ad046b
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 3ad046b

Please sign in to comment.