aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEsption <esption@gmail.com>2015-05-08 06:35:38 -0500
committerEsption <esption@gmail.com>2015-05-08 06:35:38 -0500
commit0d10dda72a3d56ec137da0359b2f46fc75b7aaa9 (patch)
treea7ad1d97acc38f7b8af9824a8c6411fc8307d75d
parent28355a66f02a0c244c08e2753a2806460f462da9 (diff)
downloadglutin-0d10dda72a3d56ec137da0359b2f46fc75b7aaa9.tar.gz
glutin-0d10dda72a3d56ec137da0359b2f46fc75b7aaa9.zip
Added mut so glutin can compile on nightly.
-rw-r--r--src/api/x11/mod.rs2
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;