mirror of
https://github.com/danbulant/oxc
synced 2026-05-19 12:19:15 +00:00
refactor(data_structures): add #[repr(transparent)] to NonNull shim (#7023)
Ensure `NonNull` shim is a pure wrapper around `std::ptr::NonNull`. This should be the case anyway, but make sure.
This commit is contained in:
parent
f1fc8db2fb
commit
fb1710a8cc
1 changed files with 1 additions and 0 deletions
|
|
@ -13,6 +13,7 @@ use std::{cmp::Ordering, ptr::NonNull as NativeNonNull};
|
|||
/// a lint warning when that happens.
|
||||
/// Then this module can be deleted, and all uses of this type can be switched to `std::ptr::NonNull`.
|
||||
#[derive(Debug)]
|
||||
#[repr(transparent)]
|
||||
pub struct NonNull<T>(NativeNonNull<T>);
|
||||
|
||||
#[cfg(clippy)]
|
||||
|
|
|
|||
Loading…
Reference in a new issue