Update for language changes

This commit is contained in:
Patrick Walton
2013-02-19 17:52:37 -08:00
parent 4d62a3f9ac
commit 020deaffff
+2 -2
View File
@@ -22,7 +22,7 @@ use cf::string::{CFString, CFStringRef};
struct __IOSurface { private: () }
pub type IOSurfaceRef = *__IOSurface;
impl IOSurfaceRef : AbstractCFTypeRef {
impl AbstractCFTypeRef for IOSurfaceRef {
pure fn as_type_ref(&self) -> CFTypeRef { *self as CFTypeRef }
static pure fn type_id() -> CFTypeID {
@@ -54,7 +54,7 @@ pub fn lookup(csid: IOSurfaceID) -> IOSurface {
}
}
pub impl IOSurface : IOSurfaceMethods {
pub impl IOSurfaceMethods for IOSurface {
fn get_id(&self) -> IOSurfaceID {
unsafe {
IOSurfaceGetID(self.obj)