mirror of
https://github.com/wez/wezterm.git
synced 2024-08-17 10:10:23 +03:00
filedescriptor: macos: mem::uninitialized -> MaybeUninit
Move away from the deprecated way of doing this.
This commit is contained in:
parent
c778307b0e
commit
8c6819ef63
@ -384,7 +384,7 @@ mod macos {
|
||||
impl FdSet {
|
||||
pub fn new() -> Self {
|
||||
unsafe {
|
||||
let mut set = std::mem::uninitialized();
|
||||
let mut set = std::mem::MaybeUninit::uninit().assume_init();
|
||||
FD_ZERO(&mut set);
|
||||
Self { set }
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user