aboutsummaryrefslogtreecommitdiff
path: root/src/event.rs
diff options
context:
space:
mode:
authorMatias Linares <matiaslina@gmail.com>2020-06-22 20:33:24 -0300
committerMatias Linares <matiaslina@gmail.com>2020-06-22 20:33:24 -0300
commit71e220b5f94c8af1ddfbc8e57182d9a51c1f6136 (patch)
tree2de62131f562224f4377a81961fc3c27bd28070e /src/event.rs
parent0763564eedc459a98e63a65f7ffee8ad37100fe7 (diff)
downloaddotwm-master.tar.gz
Use MaybeUninit::uninit() in favor of mem::uninitialized()HEADmaster
Diffstat (limited to 'src/event.rs')
-rw-r--r--src/event.rs4
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);