diff --git a/src/array.rs b/src/array.rs index ae0bd76..987a44c 100644 --- a/src/array.rs +++ b/src/array.rs @@ -29,7 +29,7 @@ pub type CFArrayEqualCallBack = *const u8; #[allow(dead_code)] #[repr(C)] -#[derive(Copy)] +#[derive(Clone, Copy)] pub struct CFArrayCallBacks { version: CFIndex, retain: CFArrayRetainCallBack, diff --git a/src/base.rs b/src/base.rs index 5f9bed8..81f3523 100644 --- a/src/base.rs +++ b/src/base.rs @@ -37,7 +37,7 @@ pub type CFOptionFlags = u32; #[allow(dead_code)] #[repr(C)] -#[derive(Copy)] +#[derive(Clone, Copy)] pub struct CFRange { location: CFIndex, length: CFIndex diff --git a/src/dictionary.rs b/src/dictionary.rs index 73827a7..3817bfe 100644 --- a/src/dictionary.rs +++ b/src/dictionary.rs @@ -25,7 +25,7 @@ pub type CFDictionaryRetainCallBack = *const u8; #[allow(dead_code)] #[repr(C)] -#[derive(Copy)] +#[derive(Clone, Copy)] pub struct CFDictionaryKeyCallBacks { version: CFIndex, retain: CFDictionaryRetainCallBack, @@ -37,7 +37,7 @@ pub struct CFDictionaryKeyCallBacks { #[allow(dead_code)] #[repr(C)] -#[derive(Copy)] +#[derive(Clone, Copy)] pub struct CFDictionaryValueCallBacks { version: CFIndex, retain: CFDictionaryRetainCallBack, diff --git a/src/set.rs b/src/set.rs index 43eb9a7..4432e06 100644 --- a/src/set.rs +++ b/src/set.rs @@ -23,7 +23,7 @@ pub type CFSetHashCallBack = *const u8; #[allow(dead_code)] #[repr(C)] -#[derive(Copy)] +#[derive(Clone, Copy)] pub struct CFSetCallBacks { version: CFIndex, retain: CFSetRetainCallBack,