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)) }