From 0d10dda72a3d56ec137da0359b2f46fc75b7aaa9 Mon Sep 17 00:00:00 2001 From: Esption Date: Fri, 8 May 2015 06:35:38 -0500 Subject: [PATCH] Added mut so glutin can compile on nightly. --- src/api/x11/mod.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/api/x11/mod.rs b/src/api/x11/mod.rs index 29f2bba2..4edfbbd9 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;