From 4df83cb27343188c871e0fd6fbdbe6088b49d0ab Mon Sep 17 00:00:00 2001 From: Ms2ger Date: Fri, 21 Mar 2014 22:47:27 +0100 Subject: [PATCH] Update to current rust: std::vec -> std::slice. --- azure_hl.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/azure_hl.rs b/azure_hl.rs index 0bc869a..783ebd8 100644 --- a/azure_hl.rs +++ b/azure_hl.rs @@ -41,7 +41,7 @@ use std::libc::size_t; use std::cast; use std::ptr; use std::ptr::null; -use std::vec; +use std::slice; #[cfg(target_os="linux")] use std::libc::c_void; @@ -653,7 +653,7 @@ impl DataSourceSurface { unsafe { let buf = AzDataSourceSurfaceGetData(self.azure_data_source_surface); let len = self.stride() * self.size().height; - vec::raw::buf_as_slice(buf, len as uint, f); + slice::raw::buf_as_slice(buf, len as uint, f); } }