Update for standard library changes
This commit is contained in:
+1
-1
@@ -1,5 +1,5 @@
|
||||
use base::{AbstractCFType, CFRelease, CFRetain, CFTypeRef};
|
||||
use unsafe::reinterpret_cast;
|
||||
use cast::reinterpret_cast;
|
||||
|
||||
struct __CFBoolean { private: () }
|
||||
pub type CFBooleanRef = *__CFBoolean;
|
||||
|
||||
+2
-2
@@ -1,8 +1,8 @@
|
||||
use base::{AbstractCFType, CFAllocatorRef, CFIndex, CFRelease, CFTypeRef, kCFAllocatorDefault};
|
||||
use cast::reinterpret_cast;
|
||||
use dvec::DVec;
|
||||
use libc::c_void;
|
||||
use ptr::to_unsafe_ptr;
|
||||
use unsafe::reinterpret_cast;
|
||||
use vec::raw::to_ptr;
|
||||
|
||||
pub type CFDictionaryRetainCallBack = *u8;
|
||||
@@ -50,7 +50,7 @@ mod CFDictionary {
|
||||
let (keys, values) = (DVec(), DVec());
|
||||
for pairs.each |pair| {
|
||||
// FIXME: "let" would be much nicer here, but that doesn't work yet.
|
||||
match pair {
|
||||
match *pair {
|
||||
(ref key, ref value) => {
|
||||
keys.push(key.as_type_ref());
|
||||
values.push(value.as_type_ref());
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
use base::{AbstractCFType, CFAllocatorRef, CFIndex, CFRelease, CFTypeRef, kCFAllocatorDefault};
|
||||
use cast::reinterpret_cast;
|
||||
use libc::{c_int, c_void};
|
||||
use unsafe::reinterpret_cast;
|
||||
|
||||
struct __CFNumber { private: () }
|
||||
pub type CFNumberRef = *__CFNumber;
|
||||
|
||||
Reference in New Issue
Block a user