This commit is contained in:
Michael Zhang 2020-06-29 10:55:58 -05:00
parent 3c2c92dd0d
commit 5cf99dda34
Signed by: michael
GPG key ID: BDA47A31A3C8EE6B
2 changed files with 3 additions and 3 deletions

View file

@ -1,6 +1,6 @@
[package]
name = "safex11"
version = "0.0.2"
version = "0.0.3"
description = "Safe, high-level x11 bindings"
license-file = "LICENSE"
authors = ["Michael Zhang <iptq@protonmail.com>"]

View file

@ -1,6 +1,6 @@
use std::ffi::CString;
use std::os::raw::c_char;
use std::mem::MaybeUninit;
use std::os::raw::c_char;
use std::ptr;
use x11::xlib;
@ -74,7 +74,7 @@ impl Display {
let ptr = event.as_mut_ptr();
unsafe { xlib::XNextEvent(self.inner, ptr) };
// TODO: check to make sure this isn't null
let mut event = unsafe{event.assume_init()};
let mut event = unsafe { event.assume_init() };
debug!("event: {:?}", event);
unsafe { Event::from_raw(event) }
}