diff options
author | tomaka <pierre.krieger1708@gmail.com> | 2015-05-08 14:11:04 +0200 |
---|---|---|
committer | tomaka <pierre.krieger1708@gmail.com> | 2015-05-08 14:11:04 +0200 |
commit | 479e51234e87aeef000ebaa3047c304cbe974ec1 (patch) | |
tree | a7ad1d97acc38f7b8af9824a8c6411fc8307d75d /src/api | |
parent | 28355a66f02a0c244c08e2753a2806460f462da9 (diff) | |
parent | 0d10dda72a3d56ec137da0359b2f46fc75b7aaa9 (diff) | |
download | glutin-479e51234e87aeef000ebaa3047c304cbe974ec1.tar.gz glutin-479e51234e87aeef000ebaa3047c304cbe974ec1.zip |
Merge pull request #436 from Esption/master
Added mut so glutin can compile on nightly.
Diffstat (limited to 'src/api')
-rw-r--r-- | src/api/x11/mod.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/api/x11/mod.rs b/src/api/x11/mod.rs index 29f2bba..4edfbbd 100644 --- a/src/api/x11/mod.rs +++ b/src/api/x11/mod.rs @@ -193,7 +193,7 @@ impl<'a> Iterator for PollEventsIterator<'a> { ffi::KeyPress | ffi::KeyRelease => { use events::Event::{KeyboardInput, ReceivedCharacter}; use events::ElementState::{Pressed, Released}; - let event: &mut ffi::XKeyEvent = unsafe { mem::transmute(&xev) }; + let event: &mut ffi::XKeyEvent = unsafe { mem::transmute(&mut xev) }; if event.type_ == ffi::KeyPress { let raw_ev: *mut ffi::XKeyEvent = event; |