diff options
author | Matias Linares <matiaslina@gmail.com> | 2020-06-22 20:33:24 -0300 |
---|---|---|
committer | Matias Linares <matiaslina@gmail.com> | 2020-06-22 20:33:24 -0300 |
commit | 71e220b5f94c8af1ddfbc8e57182d9a51c1f6136 (patch) | |
tree | 2de62131f562224f4377a81961fc3c27bd28070e /src/event.rs | |
parent | 0763564eedc459a98e63a65f7ffee8ad37100fe7 (diff) | |
download | dotwm-master.tar.gz |
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); |