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/android/mod.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/android') diff --git a/src/android/mod.rs b/src/android/mod.rs index 563ca50..bcf08ad 100644 --- a/src/android/mod.rs +++ b/src/android/mod.rs @@ -313,7 +313,7 @@ impl Window { pub fn get_proc_address(&self, addr: &str) -> *const () { let addr = CString::from_slice(addr.as_bytes()); - let addr = addr.as_bytes_with_nul().as_ptr(); + let addr = addr.as_ptr(); unsafe { ffi::egl::GetProcAddress(addr) as *const () } -- cgit v1.2.3