Skip to content

Commit 268c838

Browse files
authored
Merge pull request #3 from burtonageo/fix_private_in_public
Fix public_in_private warnings
2 parents 4d417a4 + ee98424 commit 268c838

File tree

7 files changed

+18
-9
lines changed

7 files changed

+18
-9
lines changed

src/array.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,9 @@ pub struct CFArrayCallBacks {
2121

2222
pub type CFArrayApplierFunction = extern "C" fn(value: *const c_void, context: *const c_void);
2323

24+
#[doc(hidden)]
2425
#[repr(C)]
25-
struct __CFArray {
26+
pub struct __CFArray {
2627
__private: c_void,
2728
}
2829

src/base.rs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,9 @@ pub type CFIndex = c_long;
3333

3434
pub type CFTypeRef = *const c_void;
3535

36+
#[doc(hidden)]
3637
#[repr(C)]
37-
struct __CFString {
38+
pub struct __CFString {
3839
__private: c_void,
3940
}
4041

@@ -56,8 +57,9 @@ pub struct CFRange {
5657
pub length: CFIndex
5758
}
5859

60+
#[doc(hidden)]
5961
#[repr(C)]
60-
struct __CFAllocator {
62+
pub struct __CFAllocator {
6163
__private: c_void,
6264
}
6365

src/character_set.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,9 @@
22

33
use libc::c_void;
44

5+
#[doc(hidden)]
56
#[repr(C)]
6-
struct __CFCharacterSet {
7+
pub struct __CFCharacterSet {
78
__private: c_void,
89
}
910

src/data.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,9 @@ use libc::c_void;
44

55
use base::*;
66

7+
#[doc(hidden)]
78
#[repr(C)]
8-
struct __CFData {
9+
pub struct __CFData {
910
__private: c_void,
1011
}
1112

src/dictionary.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,9 @@ pub struct CFDictionaryValueCallBacks {
3131
pub equal: CFDictionaryEqualCallBack
3232
}
3333

34+
#[doc(hidden)]
3435
#[repr(C)]
35-
struct __CFDictionary {
36+
pub struct __CFDictionary {
3637
__private: c_void,
3738
}
3839

src/locale.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,9 @@
22

33
use libc::c_void;
44

5+
#[doc(hidden)]
56
#[repr(C)]
6-
struct __CFLocale {
7+
pub struct __CFLocale {
78
__private: c_void,
89
}
910

src/number.rs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,9 @@ use libc::c_void;
44

55
use base::*;
66

7+
#[doc(hidden)]
78
#[repr(C)]
8-
struct __CFBoolean {
9+
pub struct __CFBoolean {
910
__private: c_void,
1011
}
1112

@@ -35,8 +36,9 @@ pub const kCFNumberNSIntegerType: CFNumberType = 15;
3536
pub const kCFNumberCGFloatType: CFNumberType = 16;
3637
pub const kCFNumberMaxType: CFNumberType = 16;
3738

39+
#[doc(hidden)]
3840
#[repr(C)]
39-
struct __CFNumber {
41+
pub struct __CFNumber {
4042
__private: c_void,
4143
}
4244

0 commit comments

Comments
 (0)