From 2d350e57f35b7a5cc5c146fd60c4f26db78ffbb6 Mon Sep 17 00:00:00 2001 From: michaelwright235 Date: Fri, 2 Jun 2023 10:00:51 +0300 Subject: [PATCH] sys: runloop: Derive Debug for structs --- core-foundation-sys/src/runloop.rs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/core-foundation-sys/src/runloop.rs b/core-foundation-sys/src/runloop.rs index 53035a2..0332f52 100644 --- a/core-foundation-sys/src/runloop.rs +++ b/core-foundation-sys/src/runloop.rs @@ -47,6 +47,7 @@ pub const kCFRunLoopExit: CFOptionFlags = 1 << 7; pub const kCFRunLoopAllActivities: CFOptionFlags = 0x0FFFFFFF; #[repr(C)] +#[derive(Debug, Clone, Copy)] pub struct CFRunLoopSourceContext { pub version: CFIndex, pub info: *mut c_void, @@ -61,6 +62,7 @@ pub struct CFRunLoopSourceContext { } #[repr(C)] +#[derive(Debug, Clone, Copy)] pub struct CFRunLoopSourceContext1 { pub version: CFIndex, pub info: *mut c_void, @@ -75,6 +77,7 @@ pub struct CFRunLoopSourceContext1 { } #[repr(C)] +#[derive(Debug, Clone, Copy)] pub struct CFRunLoopObserverContext { pub version: CFIndex, pub info: *mut c_void, @@ -86,6 +89,7 @@ pub struct CFRunLoopObserverContext { pub type CFRunLoopObserverCallBack = extern "C" fn (observer: CFRunLoopObserverRef, activity: CFRunLoopActivity, info: *mut c_void); #[repr(C)] +#[derive(Clone, Copy, Debug)] pub struct CFRunLoopTimerContext { pub version: CFIndex, pub info: *mut c_void,