diff options
author | Esption <esption@gmail.com> | 2015-05-08 06:35:38 -0500 |
---|---|---|
committer | Esption <esption@gmail.com> | 2015-05-08 06:35:38 -0500 |
commit | 0d10dda72a3d56ec137da0359b2f46fc75b7aaa9 (patch) | |
tree | a7ad1d97acc38f7b8af9824a8c6411fc8307d75d /src/api/x11 | |
parent | 28355a66f02a0c244c08e2753a2806460f462da9 (diff) | |
download | glutin-0d10dda72a3d56ec137da0359b2f46fc75b7aaa9.tar.gz glutin-0d10dda72a3d56ec137da0359b2f46fc75b7aaa9.zip |
Added mut so glutin can compile on nightly.
Diffstat (limited to 'src/api/x11')
-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; |