bump
This commit is contained in:
parent
3c2c92dd0d
commit
5cf99dda34
2 changed files with 3 additions and 3 deletions
|
@ -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>"]
|
||||
|
|
|
@ -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) }
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue