Skip to content

Commit

Permalink
appease lint
Browse files Browse the repository at this point in the history
  • Loading branch information
nathanwhit committed Jan 2, 2025
1 parent 9289dac commit 76be5ac
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions core/external.rs
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,7 @@ macro_rules! external {
// SAFETY: Wash the pointer through black_box so the compiler cannot see what we're going to do with it and needs
// to assume it will be used for valid purposes. We are taking the address of a static item, but we avoid taking an
// intermediate mutable reference to make this safe.
let ptr = ::std::hint::black_box(unsafe {
::std::ptr::addr_of_mut!(DEFINITION)
});
let ptr = ::std::hint::black_box(::std::ptr::addr_of_mut!(DEFINITION));
ptr as ::core::primitive::usize
}

Expand Down

0 comments on commit 76be5ac

Please sign in to comment.