diff --git a/Cargo.toml b/Cargo.toml index e679b8a..8eb2d66 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -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 "] diff --git a/src/xlib/display.rs b/src/xlib/display.rs index a06ff2e..31981c3 100644 --- a/src/xlib/display.rs +++ b/src/xlib/display.rs @@ -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) } }