From 656e815b23b929855d078857edfd13b03ecdb318 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebastian=20Dr=C3=B6ge?= Date: Mon, 17 Jan 2022 21:23:31 +0200 Subject: [PATCH] gstreamer: Mark `Structure` and `CapsFeatures` as `#[repr(transparent)]` too --- gstreamer/src/caps_features.rs | 1 + gstreamer/src/structure.rs | 1 + 2 files changed, 2 insertions(+) diff --git a/gstreamer/src/caps_features.rs b/gstreamer/src/caps_features.rs index d50bf101e..996123880 100644 --- a/gstreamer/src/caps_features.rs +++ b/gstreamer/src/caps_features.rs @@ -14,6 +14,7 @@ use glib::translate::*; use glib::StaticType; #[doc(alias = "GstCapsFeatures")] +#[repr(transparent)] pub struct CapsFeatures(ptr::NonNull); unsafe impl Send for CapsFeatures {} unsafe impl Sync for CapsFeatures {} diff --git a/gstreamer/src/structure.rs b/gstreamer/src/structure.rs index 668ee920f..a9bc183c6 100644 --- a/gstreamer/src/structure.rs +++ b/gstreamer/src/structure.rs @@ -63,6 +63,7 @@ impl GlibValueError for glib::value::ValueTypeMismatchOrNoneError { } #[doc(alias = "GstStructure")] +#[repr(transparent)] pub struct Structure(ptr::NonNull); unsafe impl Send for Structure {} unsafe impl Sync for Structure {}