Always derive Clone for miniobject wrappers

This commit is contained in:
Sebastian Dröge 2018-09-28 17:41:07 +03:00
parent 0b58bf5c2f
commit 26ee546d1a

View file

@ -493,6 +493,7 @@ impl<T: MiniObject + 'static> GlibPtrDefault for GstRc<T> {
macro_rules! gst_define_mini_object_wrapper( macro_rules! gst_define_mini_object_wrapper(
($name:ident, $ref_name:ident, $ffi_name:path, [$($derives:ident,)*], $get_type:expr) => { ($name:ident, $ref_name:ident, $ffi_name:path, [$($derives:ident,)*], $get_type:expr) => {
#[derive($($derives,)*)] #[derive($($derives,)*)]
#[derive(Clone)]
pub struct $name($crate::GstRc<$ref_name>); pub struct $name($crate::GstRc<$ref_name>);
#[repr(C)] #[repr(C)]