diff options
author | tomaka <pierre.krieger1708@gmail.com> | 2015-02-21 18:11:02 +0100 |
---|---|---|
committer | tomaka <pierre.krieger1708@gmail.com> | 2015-02-21 18:11:02 +0100 |
commit | 06eab6f6c0ad2d8085e2074c47967f770e49792a (patch) | |
tree | 862f0b3320c22d8cd5b7283203b71f10b66dab7d /src/android | |
parent | 7ff76cddd981d64fbf0f821ba8a5f456fd0fcb29 (diff) | |
parent | 1055eed078f674ad4cc657e99a247310183d635e (diff) | |
download | glutin-06eab6f6c0ad2d8085e2074c47967f770e49792a.tar.gz glutin-06eab6f6c0ad2d8085e2074c47967f770e49792a.zip |
Merge pull request #286 from mitchmindtree/master
Updated to latest nightly - RingBuf -> VecDeque, removed unnecessary as_slice_with_nul
Diffstat (limited to 'src/android')
-rw-r--r-- | src/android/mod.rs | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/android/mod.rs b/src/android/mod.rs index 30e6c08..bcf08ad 100644 --- a/src/android/mod.rs +++ b/src/android/mod.rs @@ -9,7 +9,7 @@ use events::ElementState::{Pressed, Released}; use events::Event::{MouseInput, MouseMoved}; use events::MouseButton; -use std::collections::RingBuf; +use std::collections::VecDeque; use Api; use BuilderAttribs; @@ -26,8 +26,8 @@ pub struct MonitorID; mod ffi; -pub fn get_available_monitors() -> RingBuf <MonitorID> { - let mut rb = RingBuf::new(); +pub fn get_available_monitors() -> VecDeque <MonitorID> { + let mut rb = VecDeque::new(); rb.push_back(MonitorID); rb } @@ -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_slice_with_nul().as_ptr(); + let addr = addr.as_ptr(); unsafe { ffi::egl::GetProcAddress(addr) as *const () } |