diff options
author | Pierre Krieger <pierre.krieger1708@gmail.com> | 2014-08-07 18:05:51 +0200 |
---|---|---|
committer | Pierre Krieger <pierre.krieger1708@gmail.com> | 2014-08-07 18:05:51 +0200 |
commit | 3f69cbb189a7f54d7f4389a2b8a71f0c23dfd04d (patch) | |
tree | 873f6d33b3bd943c3200c34b08d2aa6ca8706f21 | |
parent | cbf07d3190b8ce07b3f6ec08335677240779218e (diff) | |
download | glutin-3f69cbb189a7f54d7f4389a2b8a71f0c23dfd04d.tar.gz glutin-3f69cbb189a7f54d7f4389a2b8a71f0c23dfd04d.zip |
Fix two warnings on X11
-rw-r--r-- | src/x11/mod.rs | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/x11/mod.rs b/src/x11/mod.rs index 4088f29..c9541b9 100644 --- a/src/x11/mod.rs +++ b/src/x11/mod.rs @@ -154,12 +154,12 @@ impl Window { // getting the pointer let fn_ptr = { - let mut addr = unsafe { ffi::glXGetProcAddress(b"glXCreateContextAttribs".as_ptr() - as *const u8) } as *const (); + let mut addr = ffi::glXGetProcAddress(b"glXCreateContextAttribs".as_ptr() + as *const u8) as *const (); if addr.is_null() { - addr = unsafe { ffi::glXGetProcAddress(b"glXCreateContextAttribsARB".as_ptr() - as *const u8) } as *const (); + addr = ffi::glXGetProcAddress(b"glXCreateContextAttribsARB".as_ptr() + as *const u8) as *const (); } addr.to_option().map(|addr| { |