diff options
Diffstat (limited to 'src/event.rs')
-rw-r--r-- | src/event.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/event.rs b/src/event.rs index 9e96146..761e22b 100644 --- a/src/event.rs +++ b/src/event.rs @@ -29,7 +29,7 @@ use libc::{ }; use std::fmt; use std::ptr; -use std::mem::uninitialized; +use std::mem::MaybeUninit; use std::cmp::max; use std::os::unix::io::AsRawFd; @@ -82,7 +82,7 @@ pub unsafe fn select_event(display: *mut Display, x11fd: c_int, listener: &UnixL } let socket_fd = listener.as_raw_fd(); - let mut read_fdset: fd_set = uninitialized(); + let mut read_fdset: fd_set = MaybeUninit::uninit().assume_init(); FD_ZERO(&mut read_fdset); FD_SET(x11fd, &mut read_fdset); |