From 71e1b0541bf6541441abd7b9b89d1f1a7657fcdc Mon Sep 17 00:00:00 2001 From: Manish Goregaokar Date: Wed, 18 Jun 2014 23:20:59 +0530 Subject: [PATCH] Update Rust --- lib.rs | 2 +- platform/macos.rs | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/lib.rs b/lib.rs index 669f95b..410acce 100644 --- a/lib.rs +++ b/lib.rs @@ -16,7 +16,7 @@ extern crate geom; extern crate libc; -#[phase(syntax, link)] +#[phase(plugin, link)] extern crate log; extern crate std; extern crate sync; diff --git a/platform/macos.rs b/platform/macos.rs index dcf42dc..113a9d7 100644 --- a/platform/macos.rs +++ b/platform/macos.rs @@ -139,13 +139,13 @@ pub fn init_surface(size: Size2D) -> IOSurface { let k_is_global: CFString = unsafe { TCFType::wrap_under_get_rule(kIOSurfaceIsGlobal) }; let v_is_global = CFBoolean::true_value(); - let pairs: ~[(CFType, CFType)] = ~[ + let pairs: Vec<(CFType, CFType)> = vec!( (k_width.as_CFType(), v_width.as_CFType()), (k_height.as_CFType(), v_height.as_CFType()), (k_bytes_per_row.as_CFType(), v_bytes_per_row.as_CFType()), (k_bytes_per_elem.as_CFType(), v_bytes_per_elem.as_CFType()), (k_is_global.as_CFType(), v_is_global.as_CFType()), - ]; + ); io_surface::new(&CFDictionary::from_CFType_pairs(pairs)) }