Upgrade to rust

This commit is contained in:
Lars Bergstrom
2014-04-11 17:33:18 -05:00
parent 566a1dee24
commit ea3dda06fc
10 changed files with 29 additions and 28 deletions
+3 -3
View File
@@ -9,15 +9,15 @@
//! Immutable strings.
#[allow(non_uppercase_statics)];
#![allow(non_uppercase_statics)]
use base::{Boolean, CFAllocatorRef, CFIndex, CFIndexConvertible, CFOptionFlags, CFRange};
use base::{CFRelease, CFTypeID, TCFType, kCFAllocatorDefault, kCFAllocatorNull};
use libc;
use std::cast;
use std::fmt;
use std::from_str::FromStr;
use std::libc;
use std::ptr;
use std::slice;
@@ -205,7 +205,7 @@ pub type CFStringRef = *__CFString;
///
/// FIXME(pcwalton): Should be a newtype struct, but that fails due to a Rust compiler bug.
pub struct CFString {
priv obj: CFStringRef,
obj: CFStringRef,
}
impl Clone for CFString {