gstreamer: Mark DebugCategory as repr(transparent)

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer-rs/-/merge_requests/1263>
This commit is contained in:
Sebastian Dröge 2023-05-13 14:06:58 +03:00
parent 9453d63631
commit 4384934b32

View file

@ -52,6 +52,7 @@ impl DebugMessage {
#[derive(PartialEq, Eq, Clone, Copy)] #[derive(PartialEq, Eq, Clone, Copy)]
#[doc(alias = "GstDebugCategory")] #[doc(alias = "GstDebugCategory")]
#[repr(transparent)]
pub struct DebugCategory(Option<ptr::NonNull<ffi::GstDebugCategory>>); pub struct DebugCategory(Option<ptr::NonNull<ffi::GstDebugCategory>>);
impl DebugCategory { impl DebugCategory {