From 020deaffff282f36d8b1be8a98ee0e68f4a2b13b Mon Sep 17 00:00:00 2001 From: Patrick Walton Date: Tue, 19 Feb 2013 17:52:37 -0800 Subject: [PATCH] Update for language changes --- io_surface.rc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/io_surface.rc b/io_surface.rc index b4198c8..ce39401 100644 --- a/io_surface.rc +++ b/io_surface.rc @@ -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)