From 1055eed078f674ad4cc657e99a247310183d635e Mon Sep 17 00:00:00 2001 From: mitchmindtree Date: Sun, 22 Feb 2015 01:17:47 +1100 Subject: Removed as_slice_with_nul as CString now derefs to a CStr --- src/win32/init.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/win32/init.rs') diff --git a/src/win32/init.rs b/src/win32/init.rs index fd454d3..53fbc96 100644 --- a/src/win32/init.rs +++ b/src/win32/init.rs @@ -171,7 +171,7 @@ fn init(title: Vec, builder: BuilderAttribs<'static>, builder_sharelists: O use libc; let addr = CString::from_slice(addr.as_bytes()); - let addr = addr.as_bytes_with_nul().as_ptr(); + let addr = addr.as_ptr(); unsafe { gl::wgl::GetProcAddress(addr) as *const libc::c_void -- cgit v1.2.3