Fix new ctype lint in 1.3
This commit is contained in:
@@ -34,7 +34,7 @@ pub struct CFArrayCallBacks {
|
||||
}
|
||||
|
||||
#[repr(C)]
|
||||
struct __CFArray;
|
||||
struct __CFArray(c_void);
|
||||
|
||||
pub type CFArrayRef = *const __CFArray;
|
||||
|
||||
|
||||
@@ -13,7 +13,7 @@ use base::CFTypeID;
|
||||
use string::CFStringRef;
|
||||
|
||||
#[repr(C)]
|
||||
struct __CFBundle;
|
||||
struct __CFBundle(c_void);
|
||||
|
||||
pub type CFBundleRef = *const __CFBundle;
|
||||
|
||||
|
||||
@@ -1,7 +1,9 @@
|
||||
use libc::c_void;
|
||||
|
||||
use base::{CFAllocatorRef, CFTypeID, CFIndex};
|
||||
|
||||
#[repr(C)]
|
||||
struct __CFData;
|
||||
struct __CFData(c_void);
|
||||
|
||||
pub type CFDataRef = *const __CFData;
|
||||
|
||||
|
||||
@@ -42,7 +42,7 @@ pub struct CFDictionaryValueCallBacks {
|
||||
}
|
||||
|
||||
#[repr(C)]
|
||||
struct __CFDictionary;
|
||||
struct __CFDictionary(c_void);
|
||||
|
||||
pub type CFDictionaryRef = *const __CFDictionary;
|
||||
|
||||
|
||||
@@ -12,7 +12,7 @@ use libc::c_void;
|
||||
use base::{CFAllocatorRef, CFTypeID};
|
||||
|
||||
#[repr(C)]
|
||||
struct __CFBoolean;
|
||||
struct __CFBoolean(c_void);
|
||||
|
||||
pub type CFBooleanRef = *const __CFBoolean;
|
||||
|
||||
|
||||
@@ -15,17 +15,17 @@ use date::{CFAbsoluteTime, CFTimeInterval};
|
||||
use string::CFStringRef;
|
||||
|
||||
#[repr(C)]
|
||||
struct __CFRunLoop;
|
||||
struct __CFRunLoop(c_void);
|
||||
|
||||
pub type CFRunLoopRef = *const __CFRunLoop;
|
||||
|
||||
#[repr(C)]
|
||||
struct __CFRunLoopSource;
|
||||
struct __CFRunLoopSource(c_void);
|
||||
|
||||
pub type CFRunLoopSourceRef = *const __CFRunLoopSource;
|
||||
|
||||
#[repr(C)]
|
||||
struct __CFRunLoopObserver;
|
||||
struct __CFRunLoopObserver(c_void);
|
||||
|
||||
pub type CFRunLoopObserverRef = *const __CFRunLoopObserver;
|
||||
|
||||
|
||||
@@ -29,7 +29,7 @@ pub struct CFSetCallBacks {
|
||||
}
|
||||
|
||||
#[repr(C)]
|
||||
struct __CFSet;
|
||||
struct __CFSet(c_void);
|
||||
|
||||
pub type CFSetRef = *const __CFSet;
|
||||
|
||||
|
||||
@@ -7,7 +7,7 @@
|
||||
// option. This file may not be copied, modified, or distributed
|
||||
// except according to those terms.
|
||||
|
||||
use libc::{c_char, c_ushort};
|
||||
use libc::{c_char, c_ushort, c_void};
|
||||
|
||||
use base::{Boolean, CFOptionFlags, CFIndex, CFAllocatorRef, CFRange, CFTypeID};
|
||||
|
||||
@@ -188,7 +188,7 @@ pub type CFStringEncodings = CFIndex;
|
||||
//static kCFStringEncodingShiftJIS_X0213_00: CFStringEncoding = 0x0628; /* Deprecated */
|
||||
|
||||
#[repr(C)]
|
||||
struct __CFString;
|
||||
struct __CFString(c_void);
|
||||
|
||||
pub type CFStringRef = *const __CFString;
|
||||
|
||||
|
||||
@@ -6,12 +6,13 @@
|
||||
// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
|
||||
// option. This file may not be copied, modified, or distributed
|
||||
// except according to those terms.
|
||||
use libc::c_void;
|
||||
|
||||
use base::{CFOptionFlags, CFIndex, CFAllocatorRef, Boolean, CFTypeID};
|
||||
use string::CFStringRef;
|
||||
|
||||
#[repr(C)]
|
||||
struct __CFURL;
|
||||
struct __CFURL(c_void);
|
||||
|
||||
pub type CFURLRef = *const __CFURL;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user