Update for language changes
This commit is contained in:
+2
-2
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user