diff --git a/src/gallium/frontends/rusticl/util/ptr.rs b/src/gallium/frontends/rusticl/util/ptr.rs index 6f278c1cd11..1c87b0172bc 100644 --- a/src/gallium/frontends/rusticl/util/ptr.rs +++ b/src/gallium/frontends/rusticl/util/ptr.rs @@ -14,7 +14,8 @@ use std::{ }; /// A wrapper around pointers to C data type which are considered thread safe. -#[derive(Eq)] +#[derive(Copy, Clone, Eq)] +#[repr(transparent)] pub struct ThreadSafeCPtr(NonNull); impl ThreadSafeCPtr {