mirror of
https://github.com/rust-windowing/winit.git
synced 2026-06-27 15:13:13 -04:00
Added mut so glutin can compile on nightly.
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user